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 f78de5e2f..613d8271b 100755 --- a/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh +++ b/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh @@ -13,10 +13,13 @@ if bashio::config.true "expose_collector"; then rm -R /data/config/collector.yaml elif [ -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 ln -s /share/scrutiny/collector.yaml /data/config + mkdir -p /opt/scrutiny/config + ln -s /share/scrutiny/collector.yaml /opt/scrutiny/config/collector.yaml chmod 777 -R /share/scrutiny fi