From 2056163958df254ae8a3d2f5bd60909e79e7c9dc Mon Sep 17 00:00:00 2001 From: Galettofraise Date: Wed, 23 Feb 2022 16:36:54 +0100 Subject: [PATCH 1/2] [fix] Add --purge --- scripts/remove | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/remove b/scripts/remove index b73d2ba..61a040b 100755 --- a/scripts/remove +++ b/scripts/remove @@ -60,6 +60,16 @@ ynh_remove_app_dependencies # Remove the app directory securely ynh_script_progression --message="Removing $final_path..." --weight=1 ynh_secure_remove --file="$final_path" +#================================================= +# REMOVE DATA DIR +#================================================= + +# 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="$calibre_dir" +fi #================================================= # REMOVE NGINX CONFIGURATION From db17a62108fa03aa83704cfe623758b6bd70b5db Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Thu, 24 Feb 2022 15:34:36 +0100 Subject: [PATCH 2/2] Add new line --- scripts/remove | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/remove b/scripts/remove index 61a040b..20e5597 100755 --- a/scripts/remove +++ b/scripts/remove @@ -60,6 +60,7 @@ ynh_remove_app_dependencies # Remove the app directory securely ynh_script_progression --message="Removing $final_path..." --weight=1 ynh_secure_remove --file="$final_path" + #================================================= # REMOVE DATA DIR #=================================================