소스 검색

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

André 7 년 전
부모
커밋
67b3dec5a2
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      helper-scripts/backup_and_restore.sh

+ 4 - 0
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