mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-28 09:03:17 +00:00
Remove /etc/.pihole
directory
This commit is contained in:
parent
55eec5cfd0
commit
0f262a4237
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue