From 46da1233046676afbc70ebcd8519764867ce092d Mon Sep 17 00:00:00 2001 From: Jens Forstmann <19289807+JensForstmann@users.noreply.github.com> Date: Wed, 3 Apr 2019 13:34:42 +0200 Subject: [PATCH] Set memory limit in php.ini (#24) --- entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 15853ae..1176949 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -83,6 +83,8 @@ echo "Setting PHP-FPM configuration..." sed -e "s/@MEMORY_LIMIT@/$MEMORY_LIMIT/g" \ -e "s/@UPLOAD_MAX_SIZE@/$UPLOAD_MAX_SIZE/g" \ /tpls/etc/php7/php-fpm.d/www.conf > /etc/php7/php-fpm.d/www.conf +echo "Setting PHP INI configuration..." +sed -i -e "s|memory_limit.*|memory_limit = ${MEMORY_LIMIT}|" /etc/php7/php.ini # OpCache echo "Setting OpCache configuration..."