1
0
mirror of https://github.com/deajan/obackup.git synced 2024-11-12 19:03:42 +01:00

Fixed problem with gpg 1

This commit is contained in:
deajan 2016-09-02 16:33:23 +02:00
parent 05590e1266
commit dd42cd08b0

View File

@ -2,6 +2,7 @@
#TODO: missing files says Backup succeed
#TODO: add new encryption variable checks, also upgrade script
#TODO: ListingDatabases fail succeed
###### Remote push/pull (or local) backup script for files & databases
PROGRAM="obackup"
@ -1040,8 +1041,11 @@ function DecryptFiles {
exit 1
fi
if [ -f "$passphraseFile" ]; then
#TODO: This is an Fix: gpg 1.4.11 fails with passphrase-file but not with passphrase $(cat file)
if [ "$CRYPT_TOOL" == "gpg2" ] && [ -f "$passphraseFile" ]; then
secret="--passphrase-file $passphraseFile"
elif [ "$CRYPT_TOOL" == "gpg" ] && [ -f "$passphraseFile" ]; then
secert="$$passphrase $(cat "$passphraseFile")"
elif [ "$passphrase" != "" ]; then
secret="--passphrase $passphrase"
else