From 5a46725a1a300e8b22fb0d43208f7442c4961e4d Mon Sep 17 00:00:00 2001 From: squeak Date: Mon, 8 Mar 2021 01:32:17 +0100 Subject: [PATCH] Remove app main dir in remove script. --- scripts/remove | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/remove b/scripts/remove index 6c7133f..2665849 100755 --- a/scripts/remove +++ b/scripts/remove @@ -18,6 +18,7 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) port=$(ynh_app_setting_get --app=$app --key=port) +final_path=$(ynh_app_setting_get --app=$app --key=final_path) #================================================= # STANDARD REMOVE @@ -40,6 +41,14 @@ ynh_script_progression --message="Removing dependencies..." --weight=16 # Remove metapackage and its dependencies ynh_remove_app_dependencies +#================================================= +# REMOVE APP MAIN DIR +#================================================= +ynh_script_progression --message="Removing app main directory..." --weight=4 + +# Remove the app directory securely +ynh_secure_remove --file="$final_path" + #================================================= # REMOVE NGINX CONFIGURATION #=================================================