Changes to "check_variables()" to prevent errors if no encryption is desired (by Rolando Daniel Arnaudo)
This commit is contained in:
parent
413e053c62
commit
d8de5f0bdd
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue