From d3a5a852175f985480bd803a97f7f00833055a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 27 Sep 2023 11:25:33 +0200 Subject: [PATCH] cleaning --- scripts/remove | 13 +------------ scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/scripts/remove b/scripts/remove index 1243716..e14034d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -14,6 +14,7 @@ source /usr/share/yunohost/helpers #================================================= # REMOVE SERVICE INTEGRATION IN YUNOHOST #================================================= +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 yunohost service status transmission-daemon >/dev/null 2>&1 @@ -22,21 +23,9 @@ then yunohost service remove transmission-daemon fi -#================================================= -# REMOVE NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Removing NGINX web server configuration..." - # Remove the dedicated NGINX config ynh_remove_nginx_config -#================================================= -# SPECIFIC REMOVE -#================================================= -# REMOVE VARIOUS FILES -#================================================= -ynh_script_progression --message="Removing various files..." - # Web interface ynh_secure_remove --file=/usr/share/transmission diff --git a/scripts/upgrade b/scripts/upgrade index 0b00e23..db9a185 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -59,7 +59,7 @@ else path_less="$path" fi -#ynh_add_config --template="../conf/settings.json" --destination="/etc/transmission-daemon/settings.json" +ynh_add_config --template="../conf/settings.json" --destination="/etc/transmission-daemon/settings.json" chmod 400 "/etc/transmission-daemon/settings.json" chown debian-transmission:debian-transmission "/etc/transmission-daemon/settings.json"