mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-28 02:06:04 +02:00
Update run
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Add local drives #
|
# Add local drives #
|
||||||
@@ -17,7 +17,7 @@ timeout ${timeout_argument} "${timeout}" \
|
|||||||
bash -c \
|
bash -c \
|
||||||
"until echo > /dev/tcp/${host}/${port} ; do sleep 0.5; done" \
|
"until echo > /dev/tcp/${host}/${port} ; do sleep 0.5; done" \
|
||||||
>/dev/null 2>&1 && bash -c "scrutiny-collector-metrics run" \
|
>/dev/null 2>&1 && bash -c "scrutiny-collector-metrics run" \
|
||||||
|| echo "port $port is not available, local devices won't be available"
|
|| bashio::log.error "port $port is not available, local devices won't be available"
|
||||||
|
|
||||||
##############
|
##############
|
||||||
# CHECK PRIV #
|
# CHECK PRIV #
|
||||||
@@ -25,6 +25,6 @@ bash -c \
|
|||||||
|
|
||||||
ip link delete dummy0 type dummy >/dev/null; \
|
ip link delete dummy0 type dummy >/dev/null; \
|
||||||
ip link add dummy0 type dummy >/dev/null \
|
ip link add dummy0 type dummy >/dev/null \
|
||||||
|| echo "Privileged mode is disabled, the addon will stop"; \
|
|| bashio::log.error "Privileged mode is disabled, the addon will stop"; \
|
||||||
echo "sending TERM signal"; \
|
echo "sending TERM signal"; \
|
||||||
s6-svscanctl -t /var/run/s6/services
|
s6-svscanctl -t /var/run/s6/services
|
||||||
|
|||||||
Reference in New Issue
Block a user