From 8848adcce5dd9a471dd0fafc1349df2082ca9cc1 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 5 Nov 2021 18:47:27 +0100 Subject: [PATCH] Update remove --- scripts/remove | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/remove b/scripts/remove index 5f7e3d1..275a629 100755 --- a/scripts/remove +++ b/scripts/remove @@ -55,12 +55,12 @@ ynh_secure_remove --file="$final_path" # REMOVE DATA DIR #================================================= -# # Remove the app data directory with the command `yunohost app remove --purge` -# if [ "${YNH_APP_PURGE:-0}" -eq 1 ] -# then -# ynh_script_progression --message="Removing $app data directory..." --weight=2 -# ynh_secure_remove --file="$datadir" -# fi +# Remove the app data directory with the command `yunohost app remove galene --purge` +if [ "${YNH_APP_PURGE:-0}" -eq 1 ] +then + ynh_script_progression --message="Removing $app data directory..." --weight=2 + ynh_secure_remove --file="$datadir" +fi #================================================= # REMOVE NGINX CONFIGURATION