From 7eb730cb3a86ef06f96cb6a01bac95aa6e76b8dc Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 14 Aug 2020 14:42:08 +0200 Subject: [PATCH] fix php install --- scripts/restore | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/restore b/scripts/restore index c2a290b..22a39a8 100644 --- a/scripts/restore +++ b/scripts/restore @@ -79,12 +79,15 @@ ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" #================================================= # SPECIFIC RESTORATION #================================================= -# REINSTALL DEPENDENCIES +# RESTORE THE PHP-FPM CONFIGURATION #================================================= -ynh_script_progression --message="Reinstalling dependencies..." --weight=6 +ynh_script_progression --message="Reconfiguring PHP-FPM..." --weight=50 -# Define and install dependencies -ynh_install_extra_app_dependencies --package="php${YNH_PHP_VERSION}-cli" +# Restore the file first, so it can have a backup if different +ynh_restore_file --origin_path="/etc/php/$YNH_PHP_VERSION/fpm/pool.d/$app.conf" + +# Recreate a dedicated PHP-FPM config +ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies" #================================================= # RESTORE THE MYSQL DATABASE