From 5193e566e4074ca0e3593adbf8598cf3e7400d15 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 11 Mar 2021 14:47:03 +0100 Subject: [PATCH] Update run.sh --- scrutiny/rootfs/run.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scrutiny/rootfs/run.sh b/scrutiny/rootfs/run.sh index e947d41f8..926358193 100644 --- a/scrutiny/rootfs/run.sh +++ b/scrutiny/rootfs/run.sh @@ -1,5 +1,8 @@ #!/usr/bin/with-contenv bashio -sleep 60 + +# wait for scrutiny to load +bashio::net.wait_for 8000 + scrutiny-collector-metrics run >/dev/null && bashio::log.info "Local Devices Added" || bashio::log.error "Local Devices Not Added" #|| bashio::log.error "Privileged mode is disabled, the addon will stop" # ; \ s6-svscanctl -t /var/run/s6/services