Remove with purge
This commit is contained in:
parent
da664fc97e
commit
974ba8742e
|
@ -113,7 +113,7 @@ function remove_mongodb {
|
||||||
if [ $removemongo ]; then
|
if [ $removemongo ]; then
|
||||||
systemctl stop mongodb
|
systemctl stop mongodb
|
||||||
systemctl disable mongodb
|
systemctl disable mongodb
|
||||||
apt-get -yq remove mongodb mongo-tools
|
apt-get -yq remove --purge mongodb mongo-tools
|
||||||
apt-get -yq autoremove
|
apt-get -yq autoremove
|
||||||
if [ -d /var/lib/mongodb ]; then
|
if [ -d /var/lib/mongodb ]; then
|
||||||
rm -rf /var/lib/mongodb
|
rm -rf /var/lib/mongodb
|
||||||
|
|
Loading…
Reference in New Issue