diff --git a/scripts/remove b/scripts/remove index f29331b..005222b 100755 --- a/scripts/remove +++ b/scripts/remove @@ -61,6 +61,11 @@ ynh_print_info --message="Removing dependencies..." ynh_remove_app_dependencies ynh_remove_nodejs +# Only remove the mongodb service if it is not installed. +if ! ynh_package_is_installed --package="mongodb" + yunohost service remove mongodb +fi + #================================================= # REMOVE APP MAIN DIR #=================================================