Update 90-run.sh

This commit is contained in:
Alexandre
2022-12-27 22:48:10 +01:00
committed by GitHub
parent a4f5d3573e
commit c599c5ba9e

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