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:
@@ -13,10 +13,13 @@ if bashio::config.true "expose_collector"; then
|
|||||||
rm -R /data/config/collector.yaml
|
rm -R /data/config/collector.yaml
|
||||||
elif [ -f /opt/scrutiny/config/collector.yaml ] ; then
|
elif [ -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
|
||||||
else
|
else
|
||||||
touch /share/scrutiny/collector.yaml
|
touch /share/scrutiny/collector.yaml
|
||||||
fi
|
fi
|
||||||
ln -s /share/scrutiny/collector.yaml /data/config
|
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
|
chmod 777 -R /share/scrutiny
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user