mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
use pihole instead of direct path
This commit is contained in:
parent
74bfcea6a8
commit
41056ace02
1 changed files with 1 additions and 3 deletions
|
@ -33,7 +33,6 @@ fi
|
|||
#globals
|
||||
basename=pihole
|
||||
piholeDir=/etc/${basename}
|
||||
blacklistScript=/opt/pihole/blacklist.sh
|
||||
adList=${piholeDir}/gravity.list
|
||||
whitelist=${piholeDir}/whitelist.txt
|
||||
reload=true
|
||||
|
@ -100,8 +99,7 @@ RemoveDomain(){
|
|||
fi
|
||||
else
|
||||
echo "$1" | sed 's/\./\\./g' | xargs -I {} perl -i -ne'print unless /'{}'(?!.)/;' ${whitelist}
|
||||
#Blacklist unwhitelisted
|
||||
${blacklistScript} $1
|
||||
pihole -g
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue