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:
parent
17688ea2b0
commit
a627c25e9f
1 changed files with 11 additions and 0 deletions
|
@ -58,7 +58,18 @@ if [ -z $gui_port ]; then
|
||||||
mkdir -p $final_path
|
mkdir -p $final_path
|
||||||
cp -R $OLD_SYNCHOME/.config $final_path/.config
|
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
|
ynh_remove_app_dependencies
|
||||||
|
|
||||||
fi
|
fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
|
|
Loading…
Add table
Reference in a new issue