mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 06:48:07 +00:00
Allow pihole restart via systemctl
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
74b0904af4
commit
097e758cb6
5
pihole
5
pihole
@ -139,7 +139,12 @@ restartDNS() {
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# A full restart has been requested
|
# A full restart has been requested
|
||||||
|
if command -v systemctl >/dev/null 2>&1 ; then
|
||||||
|
svc="systemctl restart pihole-FTL"
|
||||||
|
else
|
||||||
svc="service pihole-FTL restart"
|
svc="service pihole-FTL restart"
|
||||||
|
fi
|
||||||
|
|
||||||
str="Restarting DNS server"
|
str="Restarting DNS server"
|
||||||
icon="${TICK}"
|
icon="${TICK}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user