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:
parent
2f7a4168fd
commit
4940447bdb
1 changed files with 0 additions and 11 deletions
|
@ -69,17 +69,6 @@ ynh_remove_nginx_config
|
|||
#=================================================
|
||||
# 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..."
|
||||
|
||||
# Web interface
|
||||
|
|
Loading…
Reference in a new issue