From b0307f94354eb0c05bfa00a213fb2f789371155f Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Sun, 27 Feb 2022 21:40:42 +0100 Subject: [PATCH] [fix] IN this case we want remove datadir in every situation --- scripts/remove | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/remove b/scripts/remove index 61f2713..bf67d5d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -71,14 +71,8 @@ ynh_remove_fpm_config ynh_script_progression --message="Removing app data directory..." --weight=1 # Remove the app directory securely -ynh_secure_remove --file="/home/yunohost.app/$app" +ynh_secure_remove --file="$datadir" -# Remove the data directory if --purge option is used -if [ "${YNH_APP_PURGE:-0}" -eq 1 ] -then - ynh_script_progression --message="Removing app data directory..." --time --weight=1 - ynh_secure_remove --file="$datadir" -fi #================================================= # REMOVE THE CRON FILE #=================================================