Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Warner <me@adamwarner.co.uk>2022-04-14 19:37:14 +0300
committerAdam Warner <me@adamwarner.co.uk>2022-04-14 19:37:14 +0300
commit87757206688d4a2d9caa01e1e68accd0b51d2d4d (patch)
tree648090421db80bfa75fa616f79e2a96e06acdf82
parent48f56d03851ccd7a5c442f72ccc7be46ad0e52e3 (diff)
flip logic that was accidentally reversed in #4653null-is-not-empty-is-not-nothing
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
-rwxr-xr-xpihole4
1 files changed, 2 insertions, 2 deletions
diff --git a/pihole b/pihole
index 35811da3..86f3fda8 100755
--- a/pihole
+++ b/pihole
@@ -260,7 +260,7 @@ Options:
exit 0
elif [[ "${1}" == "off" ]]; then
# Disable logging
- addKey /etc/dnsmasq.d/01-pihole.conf "log-queries"
+ removeKey /etc/dnsmasq.d/01-pihole.conf "log-queries"
addOrEditKeyValPair "${setupVars}" "QUERY_LOGGING" "false"
if [[ "${2}" != "noflush" ]]; then
# Flush logs
@@ -270,7 +270,7 @@ Options:
local str="Logging has been disabled!"
elif [[ "${1}" == "on" ]]; then
# Enable logging
- removeKey /etc/dnsmasq.d/01-pihole.conf "log-queries"
+ addKey /etc/dnsmasq.d/01-pihole.conf "log-queries"
addOrEditKeyValPair "${setupVars}" "QUERY_LOGGING" "true"
echo -e " ${INFO} Enabling logging..."
local str="Logging has been enabled!"