From 045b3d9b371d9cb90926ee98f51de4ba69362759 Mon Sep 17 00:00:00 2001 From: lapineige Date: Tue, 14 Feb 2023 13:23:26 +0100 Subject: [PATCH] Explain why data directory is (not) removed --- scripts/remove | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index bd52739..c89865f 100644 --- a/scripts/remove +++ b/scripts/remove @@ -71,8 +71,10 @@ ynh_secure_remove --file="$final_path" # 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..." --weight=1 + ynh_script_progression --message="Purge option was selected. Removing app data directory..." --weight=1 ynh_secure_remove --file="$datadir" +else + ynh_script_progression --message="Purge option was not selected. App data directory is not removed. That is good if you want to restore a backup. For fresh install, you should remove it first." --weight=1 fi #=================================================