mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-28 00:53:19 +00:00
first try using passwd
This commit is contained in:
parent
b5cf6de4a3
commit
5b68b50eed
1 changed files with 3 additions and 2 deletions
|
@ -7,7 +7,8 @@ piholeIP="127.0.0.1"
|
||||||
|
|
||||||
# Config file to hold URL rules
|
# Config file to hold URL rules
|
||||||
eventHorizion="/etc/dnsmasq.d/adList.conf"
|
eventHorizion="/etc/dnsmasq.d/adList.conf"
|
||||||
whitelist=$HOME/whitelist.txt
|
USER_HOME=$(getent passwd $SUDO_USER | cut -d: -f6)
|
||||||
|
whitelist=$USER_HOME/whitelist.txt
|
||||||
|
|
||||||
echo "Getting yoyo ad list..." # Approximately 2452 domains at the time of writing
|
echo "Getting yoyo ad list..." # Approximately 2452 domains at the time of writing
|
||||||
curl -s -d mimetype=plaintext -d hostformat=unixhosts http://pgl.yoyo.org/adservers/serverlist.php? | sort > /tmp/matter.txt
|
curl -s -d mimetype=plaintext -d hostformat=unixhosts http://pgl.yoyo.org/adservers/serverlist.php? | sort > /tmp/matter.txt
|
||||||
|
|
Loading…
Reference in a new issue