mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update 90-run.sh
This commit is contained in:
@@ -6,10 +6,14 @@
|
||||
#########################
|
||||
|
||||
if bashio::config.true "expose_collector"; then
|
||||
bashio::log.info "collector.yaml exposed in /share/scrutiny. It will only be accessible if the addon is running"
|
||||
bashio::log.info "collector.yaml exposed in /share/scrutiny"
|
||||
mkdir -p /share/scrutiny
|
||||
cp -rnf /data/config/collector.yaml /share/scrutiny || true
|
||||
rm -R /data/config/collector.yaml
|
||||
if [ -f /data/config/collector.yaml] ; then
|
||||
cp -rnf /data/config/collector.yaml /share/scrutiny || true
|
||||
rm -R /data/config/collector.yaml
|
||||
else
|
||||
touch /share/scrutiny/collector.yaml
|
||||
fi
|
||||
ln -s /share/scrutiny/collector.yaml /data/config
|
||||
chmod 777 -R /share/scrutiny
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user