1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/transmission_ynh.git synced 2024-09-04 01:46:12 +02:00

Do not remove data directory

Prevent losing data in case of reinstallation.
Data can be removed from the multimedia directory
This commit is contained in:
Maniack Crudelis 2019-05-01 13:34:27 +02:00
parent 2f7a4168fd
commit 4940447bdb

View file

@ -69,17 +69,6 @@ ynh_remove_nginx_config
#================================================= #=================================================
# REMOVE DATA # REMOVE DATA
#================================================= #=================================================
backup_core_only=$(ynh_app_setting_get $app backup_core_only)
# If backup_core_only have a value in settings.yml, do not remove the data directory
if [ -z $backup_core_only ]
then
ynh_secure_remove /home/yunohost.transmission
fi
# And remove the link in yunohost.multimedia
rm "/home/yunohost.multimedia/share/Torrents"
rm "/home/yunohost.multimedia/share/Torrent to download"
ynh_script_progression --message="Removing transmission data..." ynh_script_progression --message="Removing transmission data..."
# Web interface # Web interface