mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update 90-run.sh
This commit is contained in:
@@ -11,12 +11,12 @@ if bashio::config.true "expose_collector"; then
|
|||||||
if [ -f /data/config/collector.yaml ] ; then
|
if [ -f /data/config/collector.yaml ] ; then
|
||||||
cp -rnf /data/config/collector.yaml /share/scrutiny || true
|
cp -rnf /data/config/collector.yaml /share/scrutiny || true
|
||||||
rm -R /data/config/collector.yaml
|
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
|
cp -rnf /opt/scrutiny/config/collector.yaml /share/scrutiny || true
|
||||||
rm /opt/scrutiny/config/collector.yaml
|
rm /opt/scrutiny/config/collector.yaml
|
||||||
else
|
|
||||||
touch /share/scrutiny/collector.yaml
|
|
||||||
fi
|
fi
|
||||||
|
touch /share/scrutiny/collector.yaml
|
||||||
ln -s /share/scrutiny/collector.yaml /data/config
|
ln -s /share/scrutiny/collector.yaml /data/config
|
||||||
mkdir -p /opt/scrutiny/config
|
mkdir -p /opt/scrutiny/config
|
||||||
ln -s /share/scrutiny/collector.yaml /opt/scrutiny/config/collector.yaml
|
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"
|
bashio::exit.nok "Mode is set to 'Collector', but 'COLLECTOR_API_ENDPOINT' is not defined"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user