From 7d11d1f75ae910a5146cff108b63d44a8bdfe837 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 9 Oct 2022 11:05:42 +0200 Subject: [PATCH] Fix linter --- manifest.json | 5 ++--- scripts/install | 16 ++++++++-------- scripts/restore | 14 +++++++------- scripts/upgrade | 16 ++++++++-------- 4 files changed, 25 insertions(+), 26 deletions(-) diff --git a/manifest.json b/manifest.json index d8398fb..48ded60 100644 --- a/manifest.json +++ b/manifest.json @@ -9,13 +9,12 @@ "version": "2.1.6~ynh1", "url": "https://www.indexhibit.org", "upstream": { - "license": "free", + "license": "GPL-3.0-only", "website": "https://www.indexhibit.org", - "demo": "https://demo.example.com", "admindoc": "https://forum.indexhibit.org/tutorials/getting-started/installation/", "code": "https://github.com/Indexhibit/indexhibit" }, - "license": "free", + "license": "GPL-3.0-only", "maintainer": { "name": "", "email": "" diff --git a/scripts/install b/scripts/install index 7251617..58a5b8c 100755 --- a/scripts/install +++ b/scripts/install @@ -89,14 +89,6 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -#================================================= -# NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Configuring NGINX web server..." --weight=1 - -# Create a dedicated NGINX config -ynh_add_nginx_config - #================================================= # PHP-FPM CONFIGURATION #================================================= @@ -105,6 +97,14 @@ ynh_script_progression --message="Configuring PHP-FPM..." --weight=1 # Create a dedicated PHP-FPM config ynh_add_fpm_config --usage=low --footprint=low +#================================================= +# NGINX CONFIGURATION +#================================================= +ynh_script_progression --message="Configuring NGINX web server..." --weight=1 + +# Create a dedicated NGINX config +ynh_add_nginx_config + #================================================= # ADD A CONFIGURATION #================================================= diff --git a/scripts/restore b/scripts/restore index d5493f3..c2f98db 100755 --- a/scripts/restore +++ b/scripts/restore @@ -48,13 +48,6 @@ test ! -d $final_path \ #================================================= # STANDARD RESTORATION STEPS -#================================================= -# RESTORE THE NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1 - -ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" - #================================================= # RECREATE THE DEDICATED USER #================================================= @@ -94,6 +87,13 @@ 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 +#================================================= +ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1 + +ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" + #================================================= # RESTORE THE MYSQL DATABASE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 9bac017..15b22c3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -93,14 +93,6 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -#================================================= -# NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 - -# Create a dedicated NGINX config -ynh_add_nginx_config - #================================================= # UPGRADE DEPENDENCIES #================================================= @@ -116,6 +108,14 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1 # Create a dedicated PHP-FPM config ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint +#================================================= +# NGINX CONFIGURATION +#================================================= +ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 + +# Create a dedicated NGINX config +ynh_add_nginx_config + #================================================= # RELOAD NGINX #=================================================