From ddf934fd72844e4188ec7c09921a2839a188abea Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 23 Nov 2017 18:32:29 +0000 Subject: [PATCH] Remove mongodb daemon if necessary --- src/freedombone-utils-mongodb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-utils-mongodb b/src/freedombone-utils-mongodb index 3ad23153..cbc648bc 100755 --- a/src/freedombone-utils-mongodb +++ b/src/freedombone-utils-mongodb @@ -116,6 +116,10 @@ function remove_mongodb { if [ -d /var/lib/mongodb ]; then rm -rf /var/lib/mongodb fi + if [ -f /etc/systemd/system/mongodb.service ]; then + rm /etc/systemd/system/mongodb.service + systemctl daemon-reload + fi fi }