1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 06:48:07 +00:00

Declare and assign 'logging_enabled' separately

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2021-06-04 21:30:41 +02:00
parent 1ae67e1de8
commit 08cf9aa5a7

View File

@ -1325,8 +1325,9 @@ analyze_pihole_log() {
local pihole_log_head=()
local pihole_log_tail=()
local pihole_log_permissions
local logging_enabled
local logging_enabled=$(grep -c "^log-queries" /etc/dnsmasq.d/01-pihole.conf)
logging_enabled=$(grep -c "^log-queries" /etc/dnsmasq.d/01-pihole.conf)
if [[ "${logging_enabled}" == "0" ]]; then
# Inform user that logging has been disabled and pihole.log does not contain queries
log_write "${INFO} Query logging is disabled"