From 7b22b7756653f9285b87a4e2b6b163f7ed6e6cec Mon Sep 17 00:00:00 2001 From: Paolo Mainardi Date: Sat, 18 Feb 2017 15:37:37 +0100 Subject: [PATCH] Fix logical check of booleans --- assets/runtime/functions | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/runtime/functions b/assets/runtime/functions index 1d3735b7..18136582 100644 --- a/assets/runtime/functions +++ b/assets/runtime/functions @@ -777,8 +777,7 @@ gitlab_configure_backups() { GITLAB_BACKUP_PG_SCHEMA \ GITLAB_BACKUP_ARCHIVE_PERMISSIONS gitlab_configure_backups_schedule - BACKUP_ACTIVE=(${AWS_BACKUPS} OR ${GCS_BACKUPS}) - if [[ ${BACKUP_ACTIVE} == false ]]; then + if [[ -z ${AWS_BACKUPS} || -z ${GCS_BACKUPS} ]]; then exec_as_git sed -i "/upload:/,/#end-gcs/d" ${GITLAB_CONFIG} return 0 fi