From 36e3d7491d785aa9fab1e8692034b21d1a79d6c7 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 5 Nov 2021 22:17:18 +0100 Subject: [PATCH] Update remove --- scripts/remove | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/remove b/scripts/remove index c408ba2..fc31a26 100644 --- a/scripts/remove +++ b/scripts/remove @@ -45,8 +45,8 @@ ynh_remove_app_dependencies # REMOVE DATA DIR #================================================= -# Remove the app data directory with the command `yunohost app remove --purge` -if [ "$YNH_APP_PURGE" == true ] +# Remove the app data directory with the command `yunohost app remove transmission --purge` +if [ "${YNH_APP_PURGE:-0}" -eq 1 ] then ynh_script_progression --message="Removing $app data directory..." --weight=2 ynh_secure_remove --file="$datadir"