From 33f6091962f869c569b09c97a4bc99e1f41d3a4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 6 Jul 2024 10:17:33 +0200 Subject: [PATCH] cleaning --- scripts/backup | 8 +------- scripts/remove | 8 ++------ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/scripts/backup b/scripts/backup index 86c90c0..d65c82e 100755 --- a/scripts/backup +++ b/scripts/backup @@ -28,17 +28,11 @@ ynh_backup --src_path="$install_dir" ynh_backup --src_path="$data_dir" --is_big #================================================= -# SPECIFIC BACKUP -#================================================= -# BACKUP LOGROTATE +# SYSTEM CONFIGURATION #================================================= ynh_backup --src_path="/etc/logrotate.d/$app" -#================================================= -# BACKUP SYSTEMD -#================================================= - ynh_backup --src_path="/etc/systemd/system/$app.service" #================================================= diff --git a/scripts/remove b/scripts/remove index 0dce259..1c27f67 100755 --- a/scripts/remove +++ b/scripts/remove @@ -10,10 +10,9 @@ source _common.sh source /usr/share/yunohost/helpers #================================================= -# STANDARD REMOVE -#================================================= -# REMOVE SERVICE INTEGRATION IN YUNOHOST +# REMOVE SYSTEM CONFIGURATIONS #================================================= +ynh_script_progression --message="Removing system configurations related to $app..." --weight=1 # Remove the service from the list of services known by YunoHost (added from `yunohost service add`) if ynh_exec_warn_less yunohost service status $app >/dev/null @@ -28,9 +27,6 @@ ynh_remove_systemd_config # Remove the app-specific logrotate config ynh_remove_logrotate -# Remove the log files -ynh_secure_remove --file="/var/log/$app" - #================================================= # END OF SCRIPT #=================================================