From 00ba7e1f80736413159755f4e0e3b72db1ab59b5 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Tue, 28 Nov 2023 19:12:46 +0100 Subject: [PATCH] fix remove mongod --- scripts/remove | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/remove b/scripts/remove index 51765f7..402caf0 100755 --- a/scripts/remove +++ b/scripts/remove @@ -76,6 +76,12 @@ then ynh_script_progression --message="Removing $app-web service integration..." yunohost service remove "$app-web" fi +if ynh_exec_warn_less yunohost service status "$mongod" >/dev/null +then + ynh_script_progression --message="Removing mongod service integration..." + yunohost service remove "mongod" +fi + #================================================= # STOP AND REMOVE SERVICE @@ -112,8 +118,6 @@ ynh_script_progression --message="Removing the MongoDB database..." # Remove a database if it exists, along with the associated user ynh_mongo_remove_db --db_user=$db_user --db_name=$db_name -ynh_remove_systemd_config --service="mongod" - #================================================= # REMOVE NGINX CONFIGURATION #=================================================