From 0e9ab85ef6ac82083b3fd944c53627323b865be3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 20 Aug 2022 13:32:35 +0200 Subject: [PATCH] Fix --- manifest.json | 4 ++-- scripts/restore | 21 +++++++++++---------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/manifest.json b/manifest.json index 656581d..bc7b717 100644 --- a/manifest.json +++ b/manifest.json @@ -29,12 +29,12 @@ "email": "opi@zeropi.net" }], "requirements": { - "yunohost": ">= 4.3.0" + "yunohost": ">= 11.0.9" }, "multi_instance": true, "services": [ "nginx", - "php7.3-fpm" + "php8.1-fpm" ], "arguments": { "install" : [ diff --git a/scripts/restore b/scripts/restore index 7131e35..ec46004 100755 --- a/scripts/restore +++ b/scripts/restore @@ -41,12 +41,6 @@ test ! -d $final_path \ #================================================= # STANDARD RESTORATION STEPS -#================================================= -# RESTORE THE NGINX CONFIGURATION -#================================================= - -ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" - #================================================= # RECREATE THE DEDICATED USER #================================================= @@ -91,6 +85,14 @@ chown -R $app:www-data "$final_path" # # Allow to install templates # chown -R $app:root $final_path/lib/tpl +#================================================= +# REINSTALL DEPENDENCIES +#================================================= +ynh_script_progression --message="Reinstalling dependencies..." --weight=1 + +# Define and install dependencies +ynh_install_app_dependencies $pkg_dependencies + #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= @@ -102,12 +104,11 @@ ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --phpversion=$phpversion #================================================= -# REINSTALL DEPENDENCIES +# RESTORE THE NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Reinstalling dependencies..." --weight=1 +ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1 -# Define and install dependencies -ynh_install_app_dependencies $pkg_dependencies +ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # RESTORE FAIL2BAN CONFIGURATION