From 1193bf4b5437085c2db2e119f010b4f7effd1c8d Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 6 Nov 2021 11:23:17 +0100 Subject: [PATCH] Update remove --- scripts/remove | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/remove b/scripts/remove index 275a629..5aa39d2 100755 --- a/scripts/remove +++ b/scripts/remove @@ -55,6 +55,11 @@ ynh_secure_remove --file="$final_path" # REMOVE DATA DIR #================================================= +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + $YNH_APP_PURGE -eq 1 +fi + + # Remove the app data directory with the command `yunohost app remove galene --purge` if [ "${YNH_APP_PURGE:-0}" -eq 1 ] then