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:
DL6ER 2019-02-01 18:06:57 +01:00
parent e8dabc71af
commit ec79e86bee
No known key found for this signature in database
GPG key ID: FB60471F0575164A

View file

@ -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