mirror of
https://github.com/deajan/obackup.git
synced 2024-12-24 14:33:41 +01:00
Fixed problem with gpg 1
This commit is contained in:
parent
05590e1266
commit
dd42cd08b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user