Skip to content

Commit

Permalink
Merge pull request #1725 from icedream/fix/entrypoint-corrupts-config
Browse files Browse the repository at this point in the history
Fix backup config stripping for when AWS & GCS backups are disabled
  • Loading branch information
solidnerd authored Sep 22, 2018
2 parents 5ee7b1d + 56b6c42 commit 40ef00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/runtime/functions
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40ef00a

Please sign in to comment.