From 9f056198d512447502acdf94ea20d8721cf0fbb1 Mon Sep 17 00:00:00 2001 From: Kayou Date: Thu, 17 Dec 2020 12:00:56 +0100 Subject: [PATCH] Apply suggestions from code review --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index a1aeb06..8c07855 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -152,11 +152,11 @@ if [ "$phpversion" != $YNH_PHP_VERSION ] then ynh_backup_if_checksum_is_different --file="/etc/php/$phpversion/fpm/pool.d/$app.conf" ynh_secure_remove --file="/etc/php/$phpversion/fpm/pool.d/$app.conf" - ynh_systemd_action --service_name="php${phpversion}-fpm" --action=reload if [ -f /etc/php/$phpversion/fpm/conf.d/20-$app.ini ]; then ynh_secure_remove --file="/etc/php/$phpversion/fpm/conf.d/20-$app.ini" fi - + ynh_systemd_action --service_name="php${phpversion}-fpm" --action=reload + phpversion="$YNH_PHP_VERSION" fi