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/