[SOGo, Config, Update] Add SOGO_EXPIRE_SESSION to define default session timeout

This commit is contained in:
andryyy
2019-07-21 13:07:48 +02:00
parent b6acc5ef09
commit 5e7466ac7f
4 changed files with 16 additions and 3 deletions

View File

@@ -200,4 +200,10 @@ fi
echo "Syncing web content with named volume"
rsync -a /usr/lib/GNUstep/SOGo/. /sogo_web/
# Creating cronjobs
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
exec gosu sogo /usr/sbin/sogod