Collector exposed

This commit is contained in:
Alexandre
2022-11-23 07:06:32 +01:00
committed by GitHub
parent 9a8e00f2bd
commit 37b1d868b6

View File

@@ -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