d8de5f0bddc26a357fb0184338b8c3a800bffc3a
- Author
- Zertrin <zertrin@gmail.com>
- Committer
- Zertrin <zertrin@gmail.com>
- Date
Message
Changes to "check_variables()" to prevent errors if no encryption is desired (by Rolando Daniel Arnaudo)
Diff
1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
2index 6fde6aa08ddd6fff4a3fb090b5c5ec45b01e89af..c3fc583cb372ef21d4642445559814983c01e26d 100755
3--- a/duplicity-backup.sh
4+++ b/duplicity-backup.sh
5@@ -198,9 +198,9 @@ fi
6 check_variables ()
7 {
8 if [[ ${ROOT} = "" || ${DEST} = "" || ${INCLIST} = "" || \
9- ${GPG_ENC_KEY} = "foobar_gpg_key" || \
10+ ( ${ENCRYPTION} = "yes" && (${GPG_ENC_KEY} = "foobar_gpg_key" || \
11 ${GPG_SIGN_KEY} = "foobar_gpg_key" || \
12- ${PASSPHRASE} = "foobar_gpg_passphrase" || \
13+ ${PASSPHRASE} = "foobar_gpg_passphrase")) || \
14 ${LOGDIR} = "/home/foobar_user_name/logs/test2/" || \
15 ( ${DEST_IS_S3} = true && ${AWS_ACCESS_KEY_ID} = "foobar_aws_key_id" ) || \
16 ( ${DEST_IS_S3} = true && ${AWS_SECRET_ACCESS_KEY} = "foobar_aws_access_key" ) ]]; then