1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/syncthing_ynh.git synced 2024-09-03 20:26:23 +02:00

Add old version remove steps

This commit is contained in:
yalh76 2019-04-20 01:17:51 +02:00
parent 17688ea2b0
commit a627c25e9f

View file

@ -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