diff options
author | Adam Warner <me@adamwarner.co.uk> | 2022-04-14 19:37:14 +0300 |
---|---|---|
committer | Adam Warner <me@adamwarner.co.uk> | 2022-04-14 19:37:14 +0300 |
commit | 87757206688d4a2d9caa01e1e68accd0b51d2d4d (patch) | |
tree | 648090421db80bfa75fa616f79e2a96e06acdf82 | |
parent | 48f56d03851ccd7a5c442f72ccc7be46ad0e52e3 (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-x | pihole | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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!" |