From b4070643024baa023b2e411afa846b536092aabc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 31 Oct 2019 13:02:49 +0100 Subject: [PATCH] * Docker: allow to set session timeout (in sec) via EGW_SESSION_TIMEOUT enviroment variable --- doc/docker/fpm/entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/docker/fpm/entrypoint.sh b/doc/docker/fpm/entrypoint.sh index 9e1c6b5486..71e5c4e492 100755 --- a/doc/docker/fpm/entrypoint.sh +++ b/doc/docker/fpm/entrypoint.sh @@ -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/