mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
We should really use stop_service as it also includes some nice output
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
e8dabc71af
commit
ec79e86bee
1 changed files with 1 additions and 3 deletions
|
@ -2179,9 +2179,7 @@ FTLinstall() {
|
|||
printf "transferred... "
|
||||
|
||||
# Stop pihole-FTL service if available
|
||||
# Allow failing without tripping set -e as the
|
||||
# service might not be available (e.g. on first install)
|
||||
service pihole-FTL stop > /dev/null 2>&1 || true
|
||||
stop_service pihole-FTL &> /dev/null
|
||||
|
||||
# Install the new version with the correct permissions
|
||||
install -T -m 0755 "${binary}" /usr/bin/pihole-FTL
|
||||
|
|
Loading…
Reference in a new issue