From a627c25e9f51a0a1a54360689791a7b767722aba Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 20 Apr 2019 01:17:51 +0200 Subject: [PATCH] Add old version remove steps --- scripts/upgrade | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 40b5b11..b778850 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -58,7 +58,18 @@ if [ -z $gui_port ]; then mkdir -p $final_path cp -R $OLD_SYNCHOME/.config $final_path/.config + systemctl stop syncthing@$SYNCUSER.service + yunohost service remove syncthing + systemctl disable syncthing@$SYNCUSER.service + + ynh_secure_remove --file="/etc/apt/sources.list.d/syncthing.list" + + ynh_system_user_delete --username="$SYNCUSER" + + ynh_remove_logrotate + ynh_remove_app_dependencies + fi #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP