From 0f262a423754072a9617e036530f8ce440d0f491 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Fri, 5 Feb 2016 14:48:29 +0000 Subject: [PATCH] Remove `/etc/.pihole` directory --- automated install/uninstall.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/automated install/uninstall.sh b/automated install/uninstall.sh index 78cde436..a0c40a48 100644 --- a/automated install/uninstall.sh +++ b/automated install/uninstall.sh @@ -32,10 +32,16 @@ $SUDO apt-get -y remove --purge dnsmasq $SUDO apt-get -y remove --purge lighttpd php5-common php5-cgi php5 # Only web directories/files that are created by pihole should be removed. -echo "Removing the Pi-hole Web server files..." +echo -n "::: Removing the Pi-hole Web server files..." $SUDO rm -rf /var/www/html/admin $SUDO rm -rf /var/www/html/pihole $SUDO rm /var/www/html/index.lighttpd.orig +echo " done." + +echo ":::" +echo -n "::: Removing PiHole Git Directory..." +$SUDO rm -rf /etc/.pihole +echo " done." # If the web directory is empty after removing these files, then the parent html folder can be removed. if [[ ! "$(ls -A /var/www/html)" ]]; then