mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-18 06:41:51 +02:00
Update 90-run.sh
This commit is contained in:
@@ -1,6 +1,19 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
#########################
|
||||||
|
# EXPOSE COLLECTOR.YAML #
|
||||||
|
#########################
|
||||||
|
|
||||||
|
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"
|
||||||
|
mkdir -p /share/scrutiny
|
||||||
|
cp -rnf /data/config/collector.yaml /share/scrutiny || true
|
||||||
|
rm -R /data/config/collector.yaml
|
||||||
|
ln -s /share/scrutiny/collector.yaml /data/config
|
||||||
|
chmod 777 -R /share/scrutiny
|
||||||
|
fi
|
||||||
|
|
||||||
########
|
########
|
||||||
# MODE #
|
# MODE #
|
||||||
########
|
########
|
||||||
|
|||||||
Reference in New Issue
Block a user