mirror of
https://github.com/moparisthebest/pi-hole
synced 2024-11-05 00:45:08 -05:00
Allow external IP as an input script parameter: ./gravity.sh 123.123.123.123
This commit is contained in:
parent
23713d82a0
commit
885069d440
@ -3,7 +3,12 @@
|
||||
# Compiles a list of ad-serving domains by downloading them from multiple sources
|
||||
|
||||
# This script should only be run after you have a static IP address set on the Pi
|
||||
piholeIP="$1"
|
||||
|
||||
if [[ "$piholeIP" == "" ]]; then
|
||||
piholeIP=$(hostname -I)
|
||||
fi
|
||||
|
||||
|
||||
# Ad-list sources--one per line in single quotes
|
||||
sources=('https://adaway.org/hosts.txt'
|
||||
|
Loading…
Reference in New Issue
Block a user