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