* Docker: allow to set session timeout (in sec) via EGW_SESSION_TIMEOUT enviroment variable

This commit is contained in:
Ralf Becker 2019-10-31 13:02:49 +01:00
parent d85782a545
commit b407064302

View File

@ -1,6 +1,11 @@
#!/bin/bash
set -e
# if EGW_SESSION_TIMEOUT is set in environment, propagate value to php.ini
test -n "$EGW_SESSION_TIMEOUT" && test "$EGW_SESSION_TIMEOUT" -ge 1440 &&
sed -e "s/^;\?session.gc_maxlifetime.*/session.gc_maxlifetime = $EGW_SESSION_TIMEOUT/g" \
-i /etc/php/7.3/fpm/php.ini
# ToDo check version before copy
rsync -a --delete /usr/share/egroupware-sources/ /usr/share/egroupware/