From e68231e80dbdcb51d596edf2adf49ebe22e74bbe Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 1 Apr 2019 00:47:40 +0200 Subject: [PATCH] fix php-fpm upgrade --- scripts/upgrade | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 8e9922ea..43e89c46 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -116,6 +116,10 @@ ynh_system_user_create "$app" #================================================= ynh_print_info "Upgrading php-fpm configuration..." +mv -f "/etc/php/7.2/fpm/pool.d/$app.conf" "/etc/php/7.0/fpm/pool.d/$app.conf" +systemctl reload php7.0-fpm +systemctl reload php7.2-fpm + # Create a dedicated php-fpm config ynh_add_fpm_config --phpversion="7.2"