File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,11 +79,11 @@ calculate_php() {
7979 sed -i " s|pm.max_children = .*|pm.max_children = ${PHP_FPM_MAX_CHILDREN} |g" " /etc/php/${PHP_VER} /fpm/pool.d/www.conf" 2>> /tmp/enginescript_install_errors.log
8080
8181 # Apply memory and OpCache settings to php.ini
82- sed -i " s|SEDPHPMEMLIMIT|\" ${PHP_MEMORY_LIMIT} \" |g" " /etc/php/${PHP_VER} /fpm/php.ini" 2>> /tmp/enginescript_install_errors.log
83- sed -i " s|SEDOPCACHEJITBUFFER|\" ${OPCACHE_JIT_BUFFER} \" |g" " /etc/php/${PHP_VER} /fpm/php.ini" 2>> /tmp/enginescript_install_errors.log
84- sed -i " s|SEDOPCACHEINTBUF|\" ${OPCACHE_INT_BUFFER} \" |g" " /etc/php/${PHP_VER} /fpm/php.ini" 2>> /tmp/enginescript_install_errors.log
85- # Arithmetic expansion result is unlikely to need quoting, but added for consistency
86- sed -i " s|SEDOPCACHEMEM|\" $(( AVAILABLE_MEMORY / 8 )) M\" |g" " /etc/php/${PHP_VER} /fpm/php.ini" 2>> /tmp/enginescript_install_errors.log
82+ sed -i " s|SEDPHPMEMLIMIT|${PHP_MEMORY_LIMIT} |g" " /etc/php/${PHP_VER} /fpm/php.ini" 2>> /tmp/enginescript_install_errors.log
83+ sed -i " s|SEDOPCACHEJITBUFFER|${OPCACHE_JIT_BUFFER} |g" " /etc/php/${PHP_VER} /fpm/php.ini" 2>> /tmp/enginescript_install_errors.log
84+ sed -i " s|SEDOPCACHEINTBUF|${OPCACHE_INT_BUFFER} |g" " /etc/php/${PHP_VER} /fpm/php.ini" 2>> /tmp/enginescript_install_errors.log
85+ # Arithmetic expansion result is unlikely to need quoting; template controls any surrounding quotes
86+ sed -i " s|SEDOPCACHEMEM|$(( AVAILABLE_MEMORY / 8 )) M|g" " /etc/php/${PHP_VER} /fpm/php.ini" 2>> /tmp/enginescript_install_errors.log
8787}
8888
8989# Update PHP config
You can’t perform that action at this time.
0 commit comments