From cc2034f97047ba0a959ee67b49991babb2793c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 22 Mar 2022 22:21:23 +0100 Subject: [PATCH] Update remove (#106) --- scripts/remove | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/remove b/scripts/remove index 8c4db16..1c9299b 100644 --- a/scripts/remove +++ b/scripts/remove @@ -35,6 +35,12 @@ then yunohost service remove $app fi +if ynh_exec_warn_less yunohost service status "$mongodb_servicename" >/dev/null +then + ynh_script_progression --message="Removing $mongodb_servicename service integration..." + yunohost service remove "$mongodb_servicename" +fi + #================================================= # STOP AND REMOVE SERVICE #================================================= @@ -42,6 +48,7 @@ ynh_script_progression --message="Stopping and removing the systemd service..." # Remove the dedicated systemd config ynh_remove_systemd_config +ynh_remove_systemd_config --service=$mongodb_servicename #================================================= # REMOVE LOGROTATE CONFIGURATION