From b120c8c93cf935cd84593042254b62f354ca04bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 27 Dec 2022 15:03:47 +0100 Subject: [PATCH] Fix --- scripts/install | 1 + scripts/restore | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/scripts/install b/scripts/install index a7e7a9f7..93b4e643 100755 --- a/scripts/install +++ b/scripts/install @@ -27,6 +27,7 @@ domain=$YNH_APP_ARG_DOMAIN path_url="/" admin=$YNH_APP_ARG_ADMIN database=$YNH_APP_ARG_DATABASE +phpversion=$YNH_PHP_VERSION app=$YNH_APP_INSTANCE_NAME diff --git a/scripts/restore b/scripts/restore index 7424cbfb..37001c2a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -36,6 +36,9 @@ db_user=$db_name phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) database=$(ynh_app_setting_get --app=$app --key=database) +fpm_footprint=$(ynh_app_setting_get --app=$app --key=fpm_footprint) +fpm_usage=$(ynh_app_setting_get --app=$app --key=fpm_usage) + #================================================= # CHECK IF THE APP CAN BE RESTORED #================================================= @@ -93,6 +96,9 @@ ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weig ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" +# Recreate a dedicated php-fpm config +ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --phpversion=$phpversion + #================================================= # RESTORE THE NGINX CONFIGURATION #=================================================