From 2c8a5944da3f3de7227eb96dac4740f7353a6250 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 4 Jun 2020 14:42:34 +0200 Subject: [PATCH] Forbidden extra_php_dependencies --- scripts/install | 2 +- scripts/restore | 3 +++ scripts/upgrade | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index dd44caa..65c0997 100644 --- a/scripts/install +++ b/scripts/install @@ -102,7 +102,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path" ynh_script_progression --message="Configuring php-fpm..." --weight=1 # Create a dedicated php-fpm config -ynh_add_fpm_config --phpversion="${YNH_PHP_VERSION}" +ynh_add_fpm_config --phpversion="${YNH_PHP_VERSION}" --package="$extra_php_dependencies" phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= diff --git a/scripts/restore b/scripts/restore index 9eecf5f..7217934 100644 --- a/scripts/restore +++ b/scripts/restore @@ -88,6 +88,9 @@ ynh_script_progression --message="Restoring PHP-FPM configuration..." --weight=1 ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" +# Create a dedicated php-fpm config +ynh_add_fpm_config --phpversion="$phpversion" --package="$extra_php_dependencies" + #================================================= # SPECIFIC RESTORATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index c993467..283d714 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -115,7 +115,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path" ynh_script_progression --message="Upgrading php-fpm configuration..." --weight=1 # Create a dedicated php-fpm config -ynh_add_fpm_config --phpversion="$phpversion" +ynh_add_fpm_config --phpversion="$phpversion" --package="$extra_php_dependencies" #================================================= # SPECIFIC UPGRADE