From 56b6c4245c59c9db177632505a099f3bb64c1bad Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Tue, 18 Sep 2018 17:03:10 +0200 Subject: [PATCH] Fix backup config stripping for when AWS & GCS are disabled --- assets/runtime/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/runtime/functions b/assets/runtime/functions index dd7cea6c4..37a32b4d6 100644 --- a/assets/runtime/functions +++ b/assets/runtime/functions @@ -859,7 +859,7 @@ gitlab_configure_backups() { GITLAB_BACKUP_ARCHIVE_PERMISSIONS gitlab_configure_backups_schedule if [[ ${AWS_BACKUPS} != true && ${GCS_BACKUPS} != true ]]; then - exec_as_git sed -i "/upload:/,/#end-gcs/d" ${GITLAB_CONFIG} + exec_as_git sed -i "/\s\+upload:/,/#end-gcs/d" ${GITLAB_CONFIG} return 0 fi if [[ ${AWS_BACKUPS} == true && ${GCS_BACKUPS} == true ]]; then