mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-24 00:00:14 +00:00
Patch 3 - Dont use /etc/hosts
/etc/pihole/gravity.list now stores the block list. Ensures the /etc/hosts file is left untouched.
This commit is contained in:
parent
2d96f005e6
commit
9d99a4ef36
3 changed files with 4 additions and 8 deletions
|
@ -11,7 +11,7 @@ do
|
|||
uptime | cut -d' ' -f11-
|
||||
echo "-------------------------------"
|
||||
# Uncomment to continually read the log file and display the current domain being blocked
|
||||
#tail -f /var/log/pihole.log | awk '/\/etc\/hosts/ {if ($7 != "address" && $7 != "name" && $7 != "/etc/hosts") print $7; else;}'
|
||||
#tail -f /var/log/pihole.log | awk '/\/etc\/hosts/ {if ($7 != "address" && $7 != "name" && $7 != "/etc/pihole/gravity.list") print $7; else;}'
|
||||
|
||||
today=$(date "+%b %e")
|
||||
todaysQueryCount=$(cat /var/log/pihole.log | grep "$today" | awk '/query/ {print $7}' | wc -l)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue