From 67b3dec5a2260caf32ddcdc9d78188995336fa4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Mon, 15 Oct 2018 11:37:10 +0200 Subject: [PATCH] [Helper] Add MAILCOW_BACKUP_LOCATION as alternative to BACKUP_LOCATION to backup script, fixes #957 --- helper-scripts/backup_and_restore.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helper-scripts/backup_and_restore.sh b/helper-scripts/backup_and_restore.sh index 60516944..7efdcf2e 100755 --- a/helper-scripts/backup_and_restore.sh +++ b/helper-scripts/backup_and_restore.sh @@ -1,5 +1,9 @@ #!/bin/bash +if [[ ! -z ${MAILCOW_BACKUP_LOCATION} ]]; then + BACKUP_LOCATION="${MAILCOW_BACKUP_LOCATION}" +fi + if [[ ! ${1} =~ (backup|restore) ]]; then echo "First parameter needs to be 'backup' or 'restore'" exit 1