From 9886a905cefbd842b13e9433cee9eb12495ed646 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 11 Feb 2021 17:52:12 +0100 Subject: [PATCH] Update run --- scrutiny/rootfs/etc/services.d/zzz/run | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scrutiny/rootfs/etc/services.d/zzz/run b/scrutiny/rootfs/etc/services.d/zzz/run index cae80ff93..ca466c771 100644 --- a/scrutiny/rootfs/etc/services.d/zzz/run +++ b/scrutiny/rootfs/etc/services.d/zzz/run @@ -1,4 +1,4 @@ -#!/usr/bin/with-contenv bash +#!/usr/bin/with-contenv bashio #################### # Add local drives # @@ -17,7 +17,7 @@ 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" +|| bashio::log.error "port $port is not available, local devices won't be available" ############## # CHECK PRIV # @@ -25,6 +25,6 @@ bash -c \ 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"; \ + || bashio::log.error "Privileged mode is disabled, the addon will stop"; \ echo "sending TERM signal"; \ s6-svscanctl -t /var/run/s6/services