pihole command: read values from pihole-FTL instead of setupvars.conf

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2023-02-05 16:40:38 +00:00
parent dbc6b814b2
commit 2784b267ec
No known key found for this signature in database
2 changed files with 12 additions and 25 deletions

View file

@ -153,7 +153,7 @@ getFTLPID() {
# Example getFTLConfigValue dns.piholePTR
#######################
getFTLConfigValue(){
pihole-FTL --config "${1}"
pihole-FTL --config -q "${1}"
}
#######################
@ -166,5 +166,5 @@ getFTLConfigValue(){
# setFTLConfigValue dnsmasq.upstreams '[ "8.8.8.8" , "8.8.4.4" ]'
#######################
setFTLConfigValue(){
pihole-FTL --config "${1}" "${2}"
pihole-FTL --config "${1}" "${2}" >/dev/null
}