Update run

This commit is contained in:
Alexandre
2021-02-11 16:47:16 +01:00
committed by GitHub
parent 8e535da1ca
commit b7a3961a40

View File

@@ -17,14 +17,14 @@ timeout ${timeout_argument} "${timeout}" \
bash -c \
"until echo > /dev/tcp/${host}/${port} ; do sleep 0.5; done" \
>/dev/null 2>&1 && bash -c "scrutiny-collector-metrics run" \
|| { echo "port $port is not available, local devices won't be available" && s6-svscanctl -t /var/run/s6/services }
|| { echo "port $port is not available, local devices won't be available"; s6-svscanctl -t /var/run/s6/services }
##############
# CHECK PRIV #
##############
ip link delete dummy0 type dummy >/dev/null \
| ip link add dummy0 type dummy >/dev/null \
|| { echo "Privileged mode is disabled, the addon will stop" && s6-svscanctl -t /var/run/s6/services }
ip link delete dummy0 type dummy >/dev/null; \
ip link add dummy0 type dummy >/dev/null \
|| {echo "Privileged mode is disabled, the addon will stop"; s6-svscanctl -t /var/run/s6/services }