From 9729ab5f3ff0284cf747e8249a74e6213f10fffb Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 18 Nov 2022 10:59:40 +0100 Subject: [PATCH] Use collector api --- scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh b/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh index 33da9c5ec..6c29e8fe4 100644 --- a/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh +++ b/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh @@ -17,6 +17,8 @@ if [[ "$(bashio::config "Mode")" == Collector ]]; then # Check collector if bashio::config.has_value "COLLECTOR_API_ENDPOINT"; then echo "export COLLECTOR_API_ENDPOINT=$(bashio::config "COLLECTOR_API_ENDPOINT")" >> /env.sh + sed -i "1a export COLLECTOR_API_ENDPOINT=$(bashio::config "COLLECTOR_API_ENDPOINT")" /etc/services.d/collector-once/run + bashio::log.info "Using 'COLLECTOR_API_ENDPOINT' $(bashio::config "COLLECTOR_API_ENDPOINT")" else bashio::exit.nok "Mode is set to 'Collector', but 'COLLECTOR_API_ENDPOINT' is not defined" fi