Skip to content

Commit fc3be26

Browse files
Merge pull request #292 from Limych/master
Small fixes for Hassio add-on
2 parents ef7fc0c + 8067256 commit fc3be26

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

monitor.sh

100644100755
File mode changed.

support/init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ git_path=$(which git)
2727

2828
#RUNTYPE
2929
SERVICE_ACTIVE=true
30-
systemctl is-active --quiet monitor && SERVICE_ACTIVE=true || SERVICE_ACTIVE=false
30+
which systemctl >/dev/null && systemctl is-active --quiet monitor && SERVICE_ACTIVE=true || SERVICE_ACTIVE=false
3131

3232
#VERSION CHECKER
3333
mosquitto_sub_version=$($mosquitto_sub_path --help | grep -Eo "version [0-9.]{3,}" | sed 's/[^0-9.]//gi')

0 commit comments

Comments
 (0)