This commit is contained in:
2022-02-20 15:20:31 +01:00
parent 308a14cfb0
commit 32c8bd2302
5 changed files with 38 additions and 40 deletions

View File

@@ -1,15 +0,0 @@
#!/usr/bin/env bashio
declare hostname
bashio::require.unprotected
readonly CONFIG="/etc/telegraf/telegraf.conf"
CUSTOM_CONF=$(bashio::config 'custom_conf.location')
bashio::log.info "Using custom conf file"
rm /etc/telegraf/telegraf.conf
cp "${CUSTOM_CONF}" /etc/telegraf/telegraf.conf
bashio::log.info "Finished updating config, Starting Telegraf"
telegraf