ncp-update-nc: Abort php upgrade if nc-limits fails

Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
thecalcaholic 2022-09-15 20:58:44 +02:00
parent a810c5e518
commit 39ad3695a1
No known key found for this signature in database
GPG Key ID: 3510056072886A8F

View File

@ -284,8 +284,8 @@ then
set_ncpcfg "php_version" "${PHPVER_NEW}"
install_template "php/opcache.ini.sh" "/etc/php/${PHPVER_NEW}/mods-available/opcache.ini"
( export PHPVER="${PHPVER_NEW}"; run_app nc-limits )
a2enconf php${PHPVER_NEW}-fpm
( set -e; export PHPVER="${PHPVER_NEW}"; run_app nc-limits )
a2enconf "php${PHPVER_NEW}-fpm"
echo "Starting apache and php-fpm..."
service "php${PHPVER_NEW}-fpm" start