Adam Warner 2016-11-01 09:33:39 +00:00
parent efd9a46bb9
commit e8e2c1278e

View file

@ -510,11 +510,11 @@ setLogging() {
case ${LogChoices} in case ${LogChoices} in
"On (Recommended)") "On (Recommended)")
echo "::: Logging On." echo "::: Logging On."
QUERYLOGGING=true QUERY_LOGGING=true
;; ;;
Off) Off)
echo "::: Logging Off." echo "::: Logging Off."
QUERYLOGGING=false QUERY_LOGGING=false
;; ;;
esac esac
} }
@ -595,7 +595,7 @@ version_check_dnsmasq() {
sed -i 's/^#conf-dir=\/etc\/dnsmasq.d$/conf-dir=\/etc\/dnsmasq.d/' ${dnsmasq_conf} sed -i 's/^#conf-dir=\/etc\/dnsmasq.d$/conf-dir=\/etc\/dnsmasq.d/' ${dnsmasq_conf}
if [[ "${QUERYLOGGING}" == false ]] ; then if [[ "${QUERY_LOGGING}" == false ]] ; then
#Disable Logging #Disable Logging
sed -i 's/^log-queries/#log-queries/' ${dnsmasq_pihole_01_location} sed -i 's/^log-queries/#log-queries/' ${dnsmasq_pihole_01_location}
else else
@ -864,7 +864,7 @@ finalExports() {
echo "IPv6_address=${IPv6_address}" echo "IPv6_address=${IPv6_address}"
echo "piholeDNS1=${piholeDNS1}" echo "piholeDNS1=${piholeDNS1}"
echo "piholeDNS2=${piholeDNS2}" echo "piholeDNS2=${piholeDNS2}"
echo "QUERYLOGGING=${QUERYLOGGING}" echo "QUERY_LOGGING=${QUERY_LOGGING}"
}>> "${setupVars}" }>> "${setupVars}"
} }