More attempts to remove mongodb
This commit is contained in:
parent
33de19cd99
commit
b523cd120f
|
@ -111,6 +111,8 @@ function remove_mongodb {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $removemongo ]; then
|
if [ $removemongo ]; then
|
||||||
|
systemctl stop mongodb
|
||||||
|
systemctl disable mongodb
|
||||||
apt-get -yq remove mongodb mongo-tools
|
apt-get -yq remove mongodb mongo-tools
|
||||||
apt-get -yq autoremove
|
apt-get -yq autoremove
|
||||||
if [ -d /var/lib/mongodb ]; then
|
if [ -d /var/lib/mongodb ]; then
|
||||||
|
@ -120,6 +122,9 @@ function remove_mongodb {
|
||||||
rm /etc/systemd/system/mongodb.service
|
rm /etc/systemd/system/mongodb.service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
fi
|
fi
|
||||||
|
if [ -f /etc/init.d/mongodb ]; then
|
||||||
|
rm /etc/init.d/mongodb
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue