mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-21 22:38:08 +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
7
pihole
7
pihole
@ -139,7 +139,12 @@ restartDNS() {
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# A full restart has been requested
|
# A full restart has been requested
|
||||||
svc="service pihole-FTL restart"
|
if command -v systemctl >/dev/null 2>&1 ; then
|
||||||
|
svc="systemctl restart pihole-FTL"
|
||||||
|
else
|
||||||
|
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