Browse Source

Remove mongodb daemon if necessary

Bob Mottram 7 years ago
parent
commit
ddf934fd72
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-utils-mongodb

+ 4
- 0
src/freedombone-utils-mongodb View File

116
         if [ -d /var/lib/mongodb ]; then
116
         if [ -d /var/lib/mongodb ]; then
117
             rm -rf /var/lib/mongodb
117
             rm -rf /var/lib/mongodb
118
         fi
118
         fi
119
+        if [ -f /etc/systemd/system/mongodb.service ]; then
120
+            rm /etc/systemd/system/mongodb.service
121
+            systemctl daemon-reload
122
+        fi
119
     fi
123
     fi
120
 }
124
 }
121
 
125