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 #=================================================