From 15f294d1f88bbb05e67cc5b29fed20d71a2d768f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 11 Jun 2023 23:26:11 +0200 Subject: [PATCH] cleaning --- scripts/install | 12 ++---------- scripts/upgrade | 9 ++------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/scripts/install b/scripts/install index 252490a..6743ddd 100644 --- a/scripts/install +++ b/scripts/install @@ -33,18 +33,13 @@ chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #================================================= -# PHP-FPM CONFIGURATION +# SYSTEM CONFIGURATION #================================================= -ynh_script_progression --message="Configuring PHP-FPM..." --weight=2 +ynh_script_progression --message="Adding system configurations related to $app ..." --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 @@ -88,9 +83,6 @@ ynh_install_composer --workdir=$install_dir #================================================= ynh_script_progression --message="Setuping application with CURL..." --weight=5 -# Set the app as temporarily public for curl call -ynh_script_progression --message="Configuring SSOwat..." --weight=1 - # Installation with curl ynh_script_progression --message="Finalizing installation..." --weight=1 ynh_local_curl /update.php?action=update diff --git a/scripts/upgrade b/scripts/upgrade index 0249aac..d916d9d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -44,18 +44,13 @@ chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #================================================= -# PHP-FPM CONFIGURATION +# REAPPLY SYSTEM CONFIGURATIONS #================================================= -ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2 +ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1 # Create a dedicated PHP-FPM config ynh_add_fpm_config --usage=low --footprint=low -#================================================= -# NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=3 - # Create a dedicated NGINX config ynh_add_nginx_config