mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
if whitelist.txt doesn't exist, create it
This commit is contained in:
parent
3b9f7031d5
commit
a2cddda590
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ ! -f /etc/pihole/whitelist.txt ]];then
|
||||
touch /etc/pihole/whitelist.txt
|
||||
fi
|
||||
|
||||
if [ $# = 0 ]; then
|
||||
echo "Immediately whitelists one or more domains."
|
||||
echo "Usage: whitelist.sh domain1 [domain2 ...]"
|
||||
|
|
Loading…
Reference in a new issue