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 613d8271b..585fb3694 100755 --- a/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh +++ b/scrutiny_fa/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