Skip to content

Commit

Permalink
flip logic that was accidentally reversed in #4653
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
  • Loading branch information
PromoFaux committed Apr 14, 2022
1 parent 48f56d0 commit 8775720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pihole
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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!"
Expand Down

0 comments on commit 8775720

Please sign in to comment.