Remove mongodb daemon if necessary
This commit is contained in:
parent
80c95b9b80
commit
ddf934fd72
|
@ -116,6 +116,10 @@ function remove_mongodb {
|
||||||
if [ -d /var/lib/mongodb ]; then
|
if [ -d /var/lib/mongodb ]; then
|
||||||
rm -rf /var/lib/mongodb
|
rm -rf /var/lib/mongodb
|
||||||
fi
|
fi
|
||||||
|
if [ -f /etc/systemd/system/mongodb.service ]; then
|
||||||
|
rm /etc/systemd/system/mongodb.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue