From a6a27b8bcf8ea6c6b52feccd713e5409319d368a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 5 Jun 2020 11:45:17 +0200 Subject: [PATCH] allow to set PHP memory_limit via EGW_MEMORY_LIMIT environment variable in container --- 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 f574a06aa3..b0b9bee69d 100755 --- a/doc/docker/fpm/entrypoint.sh +++ b/doc/docker/fpm/entrypoint.sh @@ -14,6 +14,11 @@ 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 +# if EGW_MEMORY_LIMIT is set in environment, propagate value to php.ini +test -n "$EGW_MEMORY_LIMIT" && \ + sed -e "s/^;\?memory_limit.*/memory_limit=$EGW_MEMORY_LIMIT/g" \ + -i /etc/php/7.3/fpm/php.ini + # ToDo check version before copy rsync -a --delete /usr/share/egroupware-sources/ /usr/share/egroupware/