From c599c5ba9e168de4bb2ade84ec58fee9a09fe220 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 27 Dec 2022 22:48:10 +0100 Subject: [PATCH] Update 90-run.sh --- scrutiny/rootfs/etc/cont-init.d/90-run.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scrutiny/rootfs/etc/cont-init.d/90-run.sh b/scrutiny/rootfs/etc/cont-init.d/90-run.sh index bc2794127..585fb3694 100755 --- a/scrutiny/rootfs/etc/cont-init.d/90-run.sh +++ b/scrutiny/rootfs/etc/cont-init.d/90-run.sh @@ -11,12 +11,12 @@ if bashio::config.true "expose_collector"; then if [ -f /data/config/collector.yaml ] ; then cp -rnf /data/config/collector.yaml /share/scrutiny || true rm -R /data/config/collector.yaml - elif [ -f /opt/scrutiny/config/collector.yaml ] ; then + fi + if [ -f /opt/scrutiny/config/collector.yaml ] ; then cp -rnf /opt/scrutiny/config/collector.yaml /share/scrutiny || true rm /opt/scrutiny/config/collector.yaml - else - touch /share/scrutiny/collector.yaml fi + touch /share/scrutiny/collector.yaml ln -s /share/scrutiny/collector.yaml /data/config mkdir -p /opt/scrutiny/config ln -s /share/scrutiny/collector.yaml /opt/scrutiny/config/collector.yaml @@ -45,4 +45,3 @@ if [[ "$(bashio::config "Mode")" == Collector ]]; then bashio::exit.nok "Mode is set to 'Collector', but 'COLLECTOR_API_ENDPOINT' is not defined" fi fi -