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
|
#globals
|
||||||
basename=pihole
|
basename=pihole
|
||||||
piholeDir=/etc/${basename}
|
piholeDir=/etc/${basename}
|
||||||
blacklistScript=/opt/pihole/blacklist.sh
|
|
||||||
adList=${piholeDir}/gravity.list
|
adList=${piholeDir}/gravity.list
|
||||||
whitelist=${piholeDir}/whitelist.txt
|
whitelist=${piholeDir}/whitelist.txt
|
||||||
reload=true
|
reload=true
|
||||||
|
@ -100,8 +99,7 @@ RemoveDomain(){
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "$1" | sed 's/\./\\./g' | xargs -I {} perl -i -ne'print unless /'{}'(?!.)/;' ${whitelist}
|
echo "$1" | sed 's/\./\\./g' | xargs -I {} perl -i -ne'print unless /'{}'(?!.)/;' ${whitelist}
|
||||||
#Blacklist unwhitelisted
|
pihole -g
|
||||||
${blacklistScript} $1
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue