From 3784cdd42c92d3028d84842d577d7bccf0c1c255 Mon Sep 17 00:00:00 2001 From: andryyy Date: Sat, 22 Feb 2020 09:38:38 +0100 Subject: [PATCH] [SOGo] Cronjob for backup, chown sogo_backup --- data/Dockerfiles/sogo/bootstrap-sogo.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/Dockerfiles/sogo/bootstrap-sogo.sh b/data/Dockerfiles/sogo/bootstrap-sogo.sh index 5218319c..443b836e 100755 --- a/data/Dockerfiles/sogo/bootstrap-sogo.sh +++ b/data/Dockerfiles/sogo/bootstrap-sogo.sh @@ -245,11 +245,15 @@ chmod 600 /var/lib/sogo/GNUstep/Defaults/sogod.plist echo "Syncing web content with named volume" rsync -a /usr/lib/GNUstep/SOGo/. /sogo_web/ +# Chown backup path +chown -R sogo:sogo /sogo_backup + # Creating cronjobs if [[ "${MASTER}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then echo "* * * * * sogo /usr/sbin/sogo-ealarms-notify -p /etc/sogo/sieve.creds 2>/dev/null" > /etc/cron.d/sogo echo "* * * * * sogo /usr/sbin/sogo-tool expire-sessions ${SOGO_EXPIRE_SESSION}" >> /etc/cron.d/sogo echo "0 0 * * * sogo /usr/sbin/sogo-tool update-autoreply -p /etc/sogo/sieve.creds" >> /etc/cron.d/sogo + echo "0 2 * * * sogo /usr/sbin/sogo-tool backup /sogo_backup ALL" >> /etc/cron.d/sogo else rm /etc/cron.d/sogo fi