From d0de9f215864c211af32532e88db0e11fd90e4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 11 Apr 2023 13:01:22 +0200 Subject: [PATCH] remove logrotate --- scripts/backup | 6 ------ scripts/install | 8 -------- scripts/remove | 8 -------- scripts/restore | 7 ------- 4 files changed, 29 deletions(-) diff --git a/scripts/backup b/scripts/backup index 427816a..1b290e6 100644 --- a/scripts/backup +++ b/scripts/backup @@ -27,12 +27,6 @@ ynh_backup --src_path="$install_dir" ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/nginx/conf.d/${synapse_domain}.d/$app.endpoint.conf" -#================================================= -# BACKUP LOGROTATE -#================================================= - -ynh_backup --src_path="/etc/logrotate.d/$app" - #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/install b/scripts/install index cb23c70..411daff 100644 --- a/scripts/install +++ b/scripts/install @@ -54,14 +54,6 @@ ynh_add_config --template="../conf/.env" --destination="$install_dir/.env" chown -R $app:www-data "$install_dir" -#================================================= -# SETUP LOGROTATE -#================================================= -ynh_script_progression --message="Configuring log rotation..." --weight=1 - -# Use logrotate to manage application logfile(s) -ynh_use_logrotate - #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/remove b/scripts/remove index 818dde6..938ac22 100644 --- a/scripts/remove +++ b/scripts/remove @@ -9,14 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# REMOVE LOGROTATE CONFIGURATION -#================================================= -ynh_script_progression --message="Removing logrotate configuration..." --weight=1 - -# Remove the app-specific logrotate config -ynh_remove_logrotate - #================================================= # REMOVE NGINX CONFIGURATION #================================================= diff --git a/scripts/restore b/scripts/restore index 5ad44b5..e2e5e78 100644 --- a/scripts/restore +++ b/scripts/restore @@ -29,13 +29,6 @@ ynh_restore_file --origin_path="$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" -#================================================= -# RESTORE THE LOGROTATE CONFIGURATION -#================================================= -ynh_script_progression --message="Restoring the logrotate configuration..." --weight=1 - -ynh_restore_file --origin_path="/etc/logrotate.d/$app" - #================================================= # GENERIC FINALIZATION #=================================================