diff --git a/scripts/install b/scripts/install index 8097aae..719e7cd 100755 --- a/scripts/install +++ b/scripts/install @@ -22,7 +22,7 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH -YNH_PHP_VERSION=$YNH_APP_ARG_PHPVERSION +phpversion=$YNH_APP_ARG_PHPVERSION app=$YNH_APP_INSTANCE_NAME @@ -44,6 +44,7 @@ ynh_script_progression --message="Storing installation settings..." ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url +ynh_app_setting_set --app=$app --key=phpversion --value=$phpversion #================================================= # CREATE DEDICATED USER @@ -84,7 +85,6 @@ ynh_script_progression --message="Configuring PHP-FPM..." # Create a dedicated php-fpm config ynh_add_fpm_config --usage=low --footprint=low -phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # RELOAD NGINX diff --git a/scripts/restore b/scripts/restore index 1fca883..8e57498 100755 --- a/scripts/restore +++ b/scripts/restore @@ -72,7 +72,6 @@ ynh_script_progression --message="Restoring PHP-FPM configuration..." # Recreate a dedicated php-fpm config ynh_add_fpm_config --usage=low --footprint=low -phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index a0cae8a..bdc11ae 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -19,6 +19,7 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) final_path=$(ynh_app_setting_get --app=$app --key=final_path) +phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # CHECK VERSION @@ -81,7 +82,6 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." # Create a dedicated php-fpm config ynh_add_fpm_config --usage=low --footprint=low -phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # RELOAD NGINX