Remove mongodb daemon if necessary

This commit is contained in:
Bob Mottram 2017-11-23 18:32:29 +00:00
parent 80c95b9b80
commit ddf934fd72
1 changed files with 4 additions and 0 deletions

View File

@ -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
}