mirror of
https://github.com/YunoHost-Apps/transmission_ynh.git
synced 2024-09-04 01:46:12 +02:00
Update remove
This commit is contained in:
parent
5b9a7bf7fe
commit
e931107380
1 changed files with 12 additions and 0 deletions
|
@ -19,6 +19,7 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||||
peer_port=$(ynh_app_setting_get --app=$app --key=peer_port)
|
peer_port=$(ynh_app_setting_get --app=$app --key=peer_port)
|
||||||
|
datadir=$(ynh_app_setting_get --app=$app --key=datadir)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD REMOVE
|
# STANDARD REMOVE
|
||||||
|
@ -40,6 +41,17 @@ ynh_script_progression --message="Removing transmission..." --weight=9
|
||||||
|
|
||||||
ynh_remove_app_dependencies
|
ynh_remove_app_dependencies
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# REMOVE DATA DIR
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
# Remove the app data directory with the command `yunohost app remove --purge`
|
||||||
|
if [ "$YNH_APP_PURGE" == true ]
|
||||||
|
then
|
||||||
|
ynh_script_progression --message="Removing $app data directory..." --weight=2
|
||||||
|
ynh_secure_remove --file="$datadir"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CLOSE THE PORTS
|
# CLOSE THE PORTS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue