mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Collector exposed
This commit is contained in:
@@ -56,6 +56,7 @@ case "$FREQUENCY" in
|
||||
sed -i "1a export COLLECTOR_CRON_SCHEDULE=\"0 0 * * 0\"" /etc/cont-init.d/50-cron-config
|
||||
;;
|
||||
esac
|
||||
|
||||
############################
|
||||
# SMARTCTL COMMAND OPTIONS #
|
||||
############################
|
||||
@@ -82,3 +83,12 @@ if bashio::config.has_value "SMARTCTL_COMMAND_DEVICE_TYPE"; then
|
||||
} > /opt/scrutiny/config/collector.yaml
|
||||
fi
|
||||
fi
|
||||
|
||||
#########################
|
||||
# EXPOSE COLLECTOR.YAML #
|
||||
#########################
|
||||
|
||||
if bashio::config.true "expose_config"; then
|
||||
bastion::log.info "collector.yaml exposed in /share. It will only be accessible if the addon is running"
|
||||
ln -s "$DATABASELOCATION"/config/collector.yaml /share/collector.yaml
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user