diff --git a/scripts/install b/scripts/install index ad892cfb..a33fba25 100644 --- a/scripts/install +++ b/scripts/install @@ -108,6 +108,7 @@ 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) #================================================= # NGINX CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index d8078469..6f33c2a5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -166,7 +166,6 @@ chown -R $app:www-data "$final_path" # Pixelfed app should be able to edit its settings from the admin panel chmod 600 "$final_path"/.env - #================================================= # UPGRADE DEPENDENCIES #================================================= @@ -181,6 +180,7 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." # Create a dedicated PHP-FPM config ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint +phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # NGINX CONFIGURATION