Fix issue where wildcarding didn't restart dnsmasq
Signed off by WaLLy3K <wally3k@pi-hole.net>
This commit is contained in:
parent
3a3c0befa7
commit
645d8e0ebd
2
pihole
2
pihole
|
@ -336,7 +336,7 @@ restartDNS() {
|
||||||
if [[ "${svcOption}" =~ "reload" ]]; then
|
if [[ "${svcOption}" =~ "reload" ]]; then
|
||||||
# Using SIGHUP will NOT re-read any *.conf files
|
# Using SIGHUP will NOT re-read any *.conf files
|
||||||
svc="killall -s SIGHUP dnsmasq"
|
svc="killall -s SIGHUP dnsmasq"
|
||||||
elif [[ -z "${svcOption}" ]]; then
|
else
|
||||||
# Get PID of dnsmasq to determine if it needs to start or restart
|
# Get PID of dnsmasq to determine if it needs to start or restart
|
||||||
if pidof dnsmasq &> /dev/null; then
|
if pidof dnsmasq &> /dev/null; then
|
||||||
svcOption="restart"
|
svcOption="restart"
|
||||||
|
|
Loading…
Reference in New Issue