Update 90-run.sh

This commit is contained in:
Alexandre
2022-12-27 22:24:20 +01:00
committed by GitHub
parent 732c42b00c
commit 14498cbc59

View File

@@ -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