mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-01 07:05:44 +00:00
Allow settings override in sogo-backup.sh
Allow a sysadmin to override BACKUP_DIR and DAYS_TO_KEEP by setting an environment variable.
This commit is contained in:
1 parent
513c17bc2f
commit
789113bb44
1 file changed
+2
-2
@@ -4,9 +4,9 @@ set -o pipefail
|
||||
#set -x
|
||||
PROGNAME="$(basename $0)"
|
||||
|
||||
BACKUP_DIR=~sogo/backups
|
||||
BACKUP_DIR=${BACKUP_DIR:-~sogo/backups}
|
||||
SOGO_TOOL=/usr/sbin/sogo-tool
|
||||
DAYS_TO_KEEP="30"
|
||||
DAYS_TO_KEEP=${DAYS_TO_KEEP:-30}
|
||||
|
||||
DATE=$(date +%F_%H%M)
|
||||
LOG="logger -t $PROGNAME -p daemon.info"
|
||||
|
||||
Reference in new issue
Block a user