mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Merged branch ScriptCleanup-Dev into development
This commit is contained in:
commit
df3cf72d29
1 changed files with 7 additions and 2 deletions
|
@ -107,8 +107,13 @@ function removeNoPurge {
|
|||
fi
|
||||
|
||||
echo "::: Removing config files and scripts..."
|
||||
$SUDO rm -rf /etc/lighttpd/ &> /dev/null
|
||||
$SUDO rm /var/log/pihole.log &> /dev/null
|
||||
if [ ! "$(dpkg-query -W --showformat='${Status}\n' lighttpd 2> /dev/null | grep -c "ok installed")" -eq 1 ]; then
|
||||
$SUDO rm -rf /etc/lighttpd/ &> /dev/null
|
||||
else
|
||||
if [ -f /etc/lighttpd/lighttpd.conf.orig ]; then
|
||||
$SUDO mv /etc/lighttpd/lighttpd.conf.orig /etc/lighttpd/lighttpd.conf
|
||||
fi
|
||||
fi
|
||||
$SUDO rm /usr/local/bin/gravity.sh &> /dev/null
|
||||
$SUDO rm /usr/local/bin/chronometer.sh &> /dev/null
|
||||
$SUDO rm /usr/local/bin/whitelist.sh &> /dev/null
|
||||
|
|
Loading…
Reference in a new issue