From b014e08e4f2c9a585ea07606d2a1498394070668 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 4 Mar 2021 00:37:08 +0100 Subject: [PATCH] Fix removal --- scripts/remove | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index aaa3603..4e9d00b 100644 --- a/scripts/remove +++ b/scripts/remove @@ -44,8 +44,8 @@ ynh_systemd_action --service_name=$app --action="stop" --line_match="Stopped LSB #================================================= ynh_script_progression --message="Removing dependencies..." --weight=20 -ynh_package_autopurge $app # Remove metapackage and its dependencies +ynh_package_autopurge $app ynh_remove_app_dependencies #================================================= @@ -64,6 +64,19 @@ ynh_script_progression --message="Removing NGINX web server configuration..." -- # Remove the dedicated NGINX config ynh_remove_nginx_config +#================================================= +# SPECIFIC REMOVE +#================================================= +# REMOVE VARIOUS FILES +#================================================= +ynh_script_progression --message="Removing various files..." + +# Remove a directory securely +ynh_secure_remove --file="/etc/default/jenkins" + +# Remove the log files +ynh_secure_remove --file="/var/log/$app" + #================================================= # END OF SCRIPT #=================================================