From 26203f7b9a332457b4d10d5e8d5db679e358c396 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 30 May 2020 18:55:27 +0200 Subject: [PATCH] remove logrotate --- scripts/backup | 6 ------ scripts/install | 8 -------- scripts/remove | 8 -------- scripts/restore | 6 ------ scripts/upgrade | 8 -------- 5 files changed, 36 deletions(-) diff --git a/scripts/backup b/scripts/backup index 14f0869..334b8eb 100644 --- a/scripts/backup +++ b/scripts/backup @@ -39,12 +39,6 @@ ynh_backup --src_path=$final_path ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" -#================================================= -# BACKUP LOGROTATE -#================================================= - -ynh_backup --src_path="/etc/logrotate.d/$app" - #================================================= # BACKUP SYSTEMD #================================================= diff --git a/scripts/install b/scripts/install index 96e9cc6..e08c710 100644 --- a/scripts/install +++ b/scripts/install @@ -154,14 +154,6 @@ yunohost service add $app --description "Self-hosted web IRC client" --log "/var chown -R $app: $final_path chown -R $app: $config_path -#================================================= -# SETUP LOGROTATE -#================================================= -ynh_script_progression --message="Configuring log rotation..." - -# Use logrotate to manage application logfile(s) -ynh_use_logrotate - #================================================= # START SYSTEMD SERVICE #================================================= diff --git a/scripts/remove b/scripts/remove index 1b25793..b5870e0 100644 --- a/scripts/remove +++ b/scripts/remove @@ -68,14 +68,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 - #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/restore b/scripts/restore index 720a610..28b0aa5 100644 --- a/scripts/restore +++ b/scripts/restore @@ -115,12 +115,6 @@ ynh_script_progression --message="Starting a systemd service..." ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Available at http" -#================================================= -# RESTORE THE LOGROTATE CONFIGURATION -#================================================= - -ynh_restore_file --origin_path="/etc/logrotate.d/$app" - #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index abaf462..2babab0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -176,14 +176,6 @@ ynh_store_file_checksum --file="$config_path/config.js" cp -a ../conf/config.js "$config_path" -#================================================= -# SETUP LOGROTATE -#================================================= -ynh_script_progression --message="Upgrading logrotate configuration..." - -# Use logrotate to manage app-specific logfile(s) -ynh_use_logrotate --non-append - #================================================= # GENERIC FINALIZATION #=================================================