From 3f049fa798dca53a260cefd0a89ba9e5bfa4ee82 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Wed, 2 Nov 2016 09:35:48 +0000 Subject: [PATCH] flush logs when disabling logging --- pihole | 1 + 1 file changed, 1 insertion(+) diff --git a/pihole b/pihole index 3a9274b4..ec1a0817 100755 --- a/pihole +++ b/pihole @@ -132,6 +132,7 @@ piholeLogging() { #Disable Logging sed -i 's/^log-queries/#log-queries/' /etc/dnsmasq.d/01-pihole.conf sed -i 's/^QUERY_LOGGING=true/QUERY_LOGGING=false/' /etc/pihole/setupVars.conf + pihole -f echo "::: Logging has been disabled!" elif [[ "${1}" == "on" ]] ; then #Enable logging