Update 90-run.sh

This commit is contained in:
Alexandre
2022-12-27 22:47:21 +01:00
committed by GitHub
parent 0992422198
commit bc4c2609bf

View File

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