mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-27 09:40:12 +00:00
move vars to pihole
This commit is contained in:
parent
a66a9cafe4
commit
f225a5dcd0
4 changed files with 15 additions and 17 deletions
14
pihole
14
pihole
|
@ -122,6 +122,20 @@ if [[ $# = 0 ]]; then
|
|||
helpFunc
|
||||
fi
|
||||
|
||||
#Source the setupVars from install script for the IP
|
||||
setupVars=/etc/pihole/setupVars.conf
|
||||
|
||||
export basename=pihole
|
||||
export piholeDir=/etc/${basename}
|
||||
export adList=${piholeDir}/gravity.list
|
||||
export blacklist=${piholeDir}/blacklist.txt
|
||||
export whitelist=${piholeDir}/whitelist.txt
|
||||
export adListFile=${piholeDir}/adlists.list
|
||||
export adListDefault=${piholeDir}/adlists.default
|
||||
export whitelistScript=/opt/pihole/whitelist.sh
|
||||
export blacklistScript=/opt/pihole/blacklist.sh
|
||||
|
||||
|
||||
# Handle redirecting to specific functions based on arguments
|
||||
case "$1" in
|
||||
"-w" | "whitelist" ) whitelistFunc "$@";;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue