[Helper] Add MAILCOW_BACKUP_LOCATION as alternative to BACKUP_LOCATION to backup script, fixes #957

master
André 2018-10-15 11:37:10 +02:00
parent 5735c4a612
commit 67b3dec5a2
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,9 @@
#!/bin/bash #!/bin/bash
if [[ ! -z ${MAILCOW_BACKUP_LOCATION} ]]; then
BACKUP_LOCATION="${MAILCOW_BACKUP_LOCATION}"
fi
if [[ ! ${1} =~ (backup|restore) ]]; then if [[ ! ${1} =~ (backup|restore) ]]; then
echo "First parameter needs to be 'backup' or 'restore'" echo "First parameter needs to be 'backup' or 'restore'"
exit 1 exit 1