1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-01-23 10:15:22 +00:00

Set memory limit in php.ini (#24)

This commit is contained in:
Jens Forstmann 2019-04-03 13:34:42 +02:00 committed by CrazyMax
parent 034a9b2606
commit 46da123304

View file

@ -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..."