From 541e11c3809028a25f8e1d7eb62656e599b9242f Mon Sep 17 00:00:00 2001 From: jarod5001 <68397534+jarod5001@users.noreply.github.com> Date: Tue, 17 May 2022 17:54:31 +0200 Subject: [PATCH] Update remove --- scripts/remove | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/scripts/remove b/scripts/remove index 6220f82..d1dbc30 100755 --- a/scripts/remove +++ b/scripts/remove @@ -17,9 +17,6 @@ ynh_script_progression --message="Loading installation settings..." --weight=1 app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) -# port=$(ynh_app_setting_get --app=$app --key=port) -# db_name=$(ynh_app_setting_get --app=$app --key=db_name) -# db_user=$db_name final_path=$(ynh_app_setting_get --app=$app --key=final_path) datadir=$(ynh_app_setting_get --app=$app --key=datadir) @@ -73,11 +70,11 @@ 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_secure_remove --file="$datadir" -# fi + if [ "${YNH_APP_PURGE:-0}" -eq 1 ] + then + ynh_script_progression --message="Removing app data directory..." --weight=1 + ynh_secure_remove --file="$datadir" + fi #================================================= # REMOVE NGINX CONFIGURATION