2015-12-06 09:31:49 -05:00
|
|
|
#!/usr/bin/env bash
|
2015-11-21 14:29:03 -05:00
|
|
|
# Completely uninstalls the Pi-hole
|
2015-12-06 09:31:49 -05:00
|
|
|
# (c) 2015 by Jacob Salmela
|
|
|
|
# This file is part of Pi-hole.
|
|
|
|
#
|
|
|
|
# Pi-hole is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
2015-11-21 14:29:03 -05:00
|
|
|
|
|
|
|
######### SCRIPT ###########
|
|
|
|
sudo apt-get -y remove --purge dnsutils bc toilet
|
|
|
|
sudo apt-get -y remove --purge dnsmasq
|
|
|
|
sudo apt-get -y remove --purge lighttpd php5-common php5-cgi php5
|
|
|
|
sudo rm -rf /var/www/html
|
|
|
|
sudo rm /etc/dnsmasq.conf /etc/dnsmasq.conf.orig
|
|
|
|
sudo rm /etc/crontab
|
|
|
|
sudo mv /etc/crontab.orig /etc/crontab
|
|
|
|
sudo rm /etc/dnsmasq.conf
|
|
|
|
sudo rm -rf /etc/lighttpd/
|
|
|
|
sudo rm /var/log/pihole.log
|
|
|
|
sudo rm /usr/local/bin/gravity.sh
|
|
|
|
sudo rm /usr/local/bin/chronometer.sh
|
|
|
|
sudo rm /usr/local/bin/whitelist.sh
|
|
|
|
sudo rm /usr/local/bin/piholeLogFlush.sh
|
|
|
|
sudo rm -rf /etc/pihole/
|