From 380cfdef948be7383cbb889ccbc26d37b9502776 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 26 Feb 2021 21:20:24 +0100 Subject: [PATCH] removing logrotate stuff --- scripts/install | 8 -------- scripts/remove | 8 -------- scripts/restore | 7 ------- scripts/upgrade | 8 -------- 4 files changed, 31 deletions(-) diff --git a/scripts/install b/scripts/install index 0be9fd4..d9c3bf3 100644 --- a/scripts/install +++ b/scripts/install @@ -240,14 +240,6 @@ ynh_script_progression --message="Securing files and directories..." # Set permissions to app files chown -R $app:$app $final_path -#================================================= -# SETUP LOGROTATE -#================================================= -ynh_script_progression --message="Configuring log rotation..." - -# Use logrotate to manage application logfile(s) -ynh_use_logrotate - #================================================= # INTEGRATE SERVICE IN YUNOHOST #================================================= diff --git a/scripts/remove b/scripts/remove index 667be17..bf6e657 100644 --- a/scripts/remove +++ b/scripts/remove @@ -56,14 +56,6 @@ ynh_script_progression --message="Removing NGINX web server configuration..." -- # Remove the dedicated NGINX config ynh_remove_nginx_config -#================================================= -# REMOVE LOGROTATE CONFIGURATION -#================================================= -ynh_script_progression --message="Removing logrotate configuration..." - -# Remove the app-specific logrotate config -ynh_remove_logrotate - #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/restore b/scripts/restore index 9bf6d2f..44229ee 100644 --- a/scripts/restore +++ b/scripts/restore @@ -154,13 +154,6 @@ If you're facing an issue or want to improve this app, please open a new issue i ynh_send_readme_to_admin --app_message="mail_to_send" --recipients="root" --type=restore -#================================================= -# RESTORE THE LOGROTATE CONFIGURATION -#================================================= -ynh_script_progression --message="Restoring the logrotate configuration..." - -ynh_restore_file --origin_path="/etc/logrotate.d/$app" - #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 2d93d7b..6bac693 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -209,14 +209,6 @@ ynh_script_progression --message="Securing files and directories..." # Set permissions on app files chown -R $app:$app $final_path -#================================================= -# SETUP LOGROTATE -#================================================= -ynh_script_progression --message="Upgrading logrotate configuration..." - -# Use logrotate to manage app-specific logfile(s) -ynh_use_logrotate --non-append - #================================================= # INTEGRATE SERVICE IN YUNOHOST #=================================================