mirror of
https://github.com/deajan/obackup.git
synced 2024-12-25 15:03: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: missing files says Backup succeed
|
||||||
#TODO: add new encryption variable checks, also upgrade script
|
#TODO: add new encryption variable checks, also upgrade script
|
||||||
|
#TODO: ListingDatabases fail succeed
|
||||||
|
|
||||||
###### Remote push/pull (or local) backup script for files & databases
|
###### Remote push/pull (or local) backup script for files & databases
|
||||||
PROGRAM="obackup"
|
PROGRAM="obackup"
|
||||||
@ -1040,8 +1041,11 @@ function DecryptFiles {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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"
|
secret="--passphrase-file $passphraseFile"
|
||||||
|
elif [ "$CRYPT_TOOL" == "gpg" ] && [ -f "$passphraseFile" ]; then
|
||||||
|
secert="$$passphrase $(cat "$passphraseFile")"
|
||||||
elif [ "$passphrase" != "" ]; then
|
elif [ "$passphrase" != "" ]; then
|
||||||
secret="--passphrase $passphrase"
|
secret="--passphrase $passphrase"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user