From 1dd5598a68eb81a0546990f260eb1c52177562be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 3 Jun 2023 21:45:59 +0200 Subject: [PATCH] cleaning --- scripts/install | 16 +++------------- scripts/upgrade | 5 ----- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/scripts/install b/scripts/install index d39c0d9..d994873 100644 --- a/scripts/install +++ b/scripts/install @@ -34,14 +34,12 @@ ynh_script_progression --message="Configuring PHP-FPM..." --weight=3 # 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=2 - # Create a dedicated NGINX config ynh_add_nginx_config +# Use logrotate to manage application logfile(s) +ynh_use_logrotate + # ================================================= # MODIFY A CONFIG FILE # ================================================= @@ -52,14 +50,6 @@ ynh_add_config --template="../conf/noalyss.conf" --destination="$install_dir/inc chmod 650 "$install_dir/include/config.inc.php" chown $app: "$install_dir/include/config.inc.php" -#================================================= -# SETUP LOGROTATE -#================================================= -ynh_script_progression --message="Configuring log rotation..." - -# Use logrotate to manage application logfile(s) -ynh_use_logrotate - #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 855d794..bccb885 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -38,11 +38,6 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --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=1 - # Create a dedicated NGINX config ynh_add_nginx_config