Commit dc9afaa5 authored by Aral Balkan's avatar Aral Balkan

Now also removing the dokku data directory on uninstall to avoid an error when...

Now also removing the dokku data directory on uninstall to avoid an error when trying to reinstall the letsencrypt plugin.
parent 816fff19
......@@ -173,8 +173,20 @@ fi
# Remove Dokku and all dependencies if it already exists.
if hash dokku 2>/dev/null; then
echo "Removing existing Dokku installation…\n"
# Remove dokku
sudo apt-get remove dokku
sudo apt-get remove docker
sudo rm -rf /var/lib/dokku
# Removing dokku doesn’t remove docker (even if we used --auto-remove
# as dokku installs it via wget get.docker.com | sh). The uninstallation
# statements here are taken from:
#
# https://docs.docker.com/engine/installation/linux/ubuntulinux/#uninstallation
#
sudo apt-get purge docker-engine
sudo apt-get autoremove --purge docker-engine
sudo rm -rf /var/lib/docker
fi
# Create the root.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment