summarylogtreecommitdiffstats
path: root/pi-hole-standalone.install
diff options
context:
space:
mode:
authormax.bra2021-02-08 14:17:44 +0100
committermax.bra2021-02-08 14:17:44 +0100
commitd86a9c9bc058bf5f53f012922c2af7d4b696b6b8 (patch)
treed733316a60b7dfca65e592c0288175d4a367f156 /pi-hole-standalone.install
parente4c70bc5e14f75c089f983d5f89960d9c5a7a869 (diff)
downloadaur-d86a9c9bc058bf5f53f012922c2af7d4b696b6b8.tar.gz
query logging admin variable needed
Diffstat (limited to 'pi-hole-standalone.install')
-rw-r--r--pi-hole-standalone.install3
1 files changed, 3 insertions, 0 deletions
diff --git a/pi-hole-standalone.install b/pi-hole-standalone.install
index 62f0c469f615..3fde50634395 100644
--- a/pi-hole-standalone.install
+++ b/pi-hole-standalone.install
@@ -24,6 +24,9 @@ post_upgrade() {
# update owner of existing dir and file
chown pihole:pihole /etc/pihole
+ # query logging disabling needs this
+ grep -qxF 'QUERY_LOGGING=' /etc/pihole/setupVars.conf || echo 'QUERY_LOGGING=true' >> /etc/pihole/setupVars.conf
+
# warning
# keep pacman from throwing errors should none them be on the filesystem