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