Changes to "check_variables()" to prevent errors if no encryption is desired (by Rolando Daniel Arnaudo)

This commit is contained in:
Zertrin 2012-09-14 17:00:34 +02:00
parent 413e053c62
commit d8de5f0bdd

View file

@ -198,9 +198,9 @@ fi
check_variables ()
{
if [[ ${ROOT} = "" || ${DEST} = "" || ${INCLIST} = "" || \
${GPG_ENC_KEY} = "foobar_gpg_key" || \
( ${ENCRYPTION} = "yes" && (${GPG_ENC_KEY} = "foobar_gpg_key" || \
${GPG_SIGN_KEY} = "foobar_gpg_key" || \
${PASSPHRASE} = "foobar_gpg_passphrase" || \
${PASSPHRASE} = "foobar_gpg_passphrase")) || \
${LOGDIR} = "/home/foobar_user_name/logs/test2/" || \
( ${DEST_IS_S3} = true && ${AWS_ACCESS_KEY_ID} = "foobar_aws_key_id" ) || \
( ${DEST_IS_S3} = true && ${AWS_SECRET_ACCESS_KEY} = "foobar_aws_access_key" ) ]]; then