mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 14:58:08 +00:00
Fixed intentation and corrected comments.
Signed-off-by: RamSet <RamSet@gmail.com>
This commit is contained in:
parent
56b04017e7
commit
3098f32a07
@ -37,9 +37,9 @@ setupVars=/etc/pihole/setupVars.conf
|
||||
lighttpdConfig=/etc/lighttpd/lighttpd.conf
|
||||
# This is a file used for the colorized output
|
||||
coltable=/opt/pihole/COL_TABLE
|
||||
# Defining a numeric variable for tracking presence of dnsmasq
|
||||
# Defining a boolean variable for tracking presence of dnsmasq
|
||||
dnsmasq_flag=false
|
||||
# Defining a numeric variable for tracking presence of systemd-resolved
|
||||
# Defining a boolean variable for tracking presence of systemd-resolved
|
||||
systemd_resolved_flag=false
|
||||
|
||||
# We store several other folders and
|
||||
@ -1507,19 +1507,19 @@ disable_dnsmasq() {
|
||||
echo -e " ${INFO} Disabling dnsmasq via systemctl"
|
||||
${SUDO} systemctl disable dnsmasq &> /dev/null
|
||||
fi
|
||||
#setting dnsmasq_flag to false in order for the next check to validate or not
|
||||
dnsmasq_flag=false
|
||||
echo -e " ${INFO} Checking if dnsmasq is still running"
|
||||
silent_port_53_check
|
||||
if [[ $dnsmasq_flag = "true" ]]; then
|
||||
#setting dnsmasq_flag to false in order for the next check to validate or not
|
||||
dnsmasq_flag=false
|
||||
echo -e " ${INFO} Checking if dnsmasq is still running"
|
||||
silent_port_53_check
|
||||
if [[ $dnsmasq_flag = "true" ]]; then
|
||||
echo -e " ${EXCL} dnsmasq still active, this is most likely due to the fact that ${COL_LIGHT_RED}dnsmasq"
|
||||
echo -e " was loaded via a non convetional method. This might cause future conflicts with FTLDNS${COL_NC}"
|
||||
${SUDO} pkill dnsmasq
|
||||
echo -e " ${TICK} dnsmasq process killed"
|
||||
fi
|
||||
else
|
||||
fi
|
||||
else
|
||||
echo -e " ${INFO} dnsmasq is not enabled"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
update_package_cache() {
|
||||
|
Loading…
Reference in New Issue
Block a user