From a19ce9267e039f59c5c109d261f21a31f1952d6c Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 1 Mar 2022 19:59:06 +0100 Subject: [PATCH] fix rm -rf --- conf/db_config.php | 7 ------- scripts/remove | 9 +++------ 2 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 conf/db_config.php diff --git a/conf/db_config.php b/conf/db_config.php deleted file mode 100644 index 2663f8e..0000000 --- a/conf/db_config.php +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/scripts/remove b/scripts/remove index ddf715b..81bc654 100755 --- a/scripts/remove +++ b/scripts/remove @@ -44,12 +44,9 @@ 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..." - rm -rf "$datadir" -fi +ynh_script_progression --message="Removing app data directory..." +ynh_secure_remove --file="$datadir/data" +ynh_secure_remove --file="$datadir/backups" #================================================= # REMOVE NGINX CONFIGURATION