fix init system detection

This commit is contained in:
Pascal Vizeli 2017-04-23 23:40:38 +02:00
parent ec1a0fd2c8
commit d040a9b6c8
2 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,7 @@ URL_VERSION="https://raw.githubusercontent.com/pvizeli/hassio/master/version.jso
URL_GENERIC_HC="https://raw.githubusercontent.com/pvizeli/hassio-build/master/generic-hc"
# Check system options
if [ command -v systemctl > /dev/null 2>&1 ]; then
if [ -x $(command -v systemctl) ]; then
INIT_SYSTEM=systemd
else
INIT_SYSTEM=sysvinit