Skip to content

Commit 9bcd8e1

Browse files
authoredJan 16, 2021
Merge pull request pi-hole#758 from pi-hole/dev
Latest versions to master
2 parents 5c21f14 + b154947 commit 9bcd8e1

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed
 

‎VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v5.2.2
1+
v5.2.3

‎install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export CORE_VERSION="$(cat /etc/docker-pi-hole-version)"
77
export WEB_VERSION="${CORE_VERSION}"
88
export PIHOLE_SKIP_OS_CHECK=true
99
# Overwrite WEB_VERSION if core and web versions are different
10-
#export WEB_VERSION="v5.1.1"
10+
export WEB_VERSION="v5.3"
1111

1212
# Only use for pre-production / testing
1313
export CHECKOUT_BRANCHES=false

‎start.sh

+21-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ export PIHOLE_DNS_
3333

3434
export adlistFile='/etc/pihole/adlists.list'
3535

36+
# If user has set QUERY_LOGGING Env Var, copy it out to _OVERRIDE, else it will get reset when we source the next two files
37+
# Come back to it at the end of the file
38+
[ -n "${QUERY_LOGGING}" ] && QUERY_LOGGING_OVERRIDE="${QUERY_LOGGING}"
39+
3640
# The below functions are all contained in bash_functions.sh
3741
. /bash_functions.sh
3842

@@ -59,7 +63,6 @@ prepare_configs
5963

6064
[ -n "${PIHOLE_INTERFACE}" ] && change_setting "PIHOLE_INTERFACE" "$PIHOLE_INTERFACE"
6165
[ -n "${IPV4_ADDRESS}" ] && change_setting "IPV4_ADDRESS" "$IPV4_ADDRESS"
62-
[ -n "${QUERY_LOGGING}" ] && change_setting "QUERY_LOGGING" "$QUERY_LOGGING"
6366
[ -n "${INSTALL_WEB_SERVER}" ] && change_setting "INSTALL_WEB_SERVER" "$INSTALL_WEB_SERVER"
6467
[ -n "${INSTALL_WEB_INTERFACE}" ] && change_setting "INSTALL_WEB_INTERFACE" "$INSTALL_WEB_INTERFACE"
6568
[ -n "${LIGHTTPD_ENABLED}" ] && change_setting "LIGHTTPD_ENABLED" "$LIGHTTPD_ENABLED"
@@ -130,4 +133,21 @@ test_configs
130133

131134
[ -f /.piholeFirstBoot ] && rm /.piholeFirstBoot
132135

136+
# Set QUERY_LOGGING value in setupVars to be that which the user has passed in as an ENV var (if they have)
137+
[ -n "${QUERY_LOGGING_OVERRIDE}" ] && change_setting "QUERY_LOGGING" "$QUERY_LOGGING_OVERRIDE"
138+
139+
# Source setupVars.conf to get the true value of QUERY_LOGGING
140+
. ${setupVars}
141+
142+
if [ ${QUERY_LOGGING} == "false" ]; then
143+
echo "::: Disabling Query Logging"
144+
pihole logging off
145+
else
146+
# If it is anything other than false, set it to true
147+
change_setting "QUERY_LOGGING" "true"
148+
# Set pihole logging on for good measure
149+
echo "::: Enabling Query Logging"
150+
pihole logging on
151+
fi
152+
133153
echo " ::: Docker start setup complete"

0 commit comments

Comments
 (0)
Please sign in to comment.