Revert "fix"

This reverts commit 32c8bd2302.
This commit is contained in:
2022-02-20 15:34:12 +01:00
parent eda28826dc
commit 883cdcdf6b
5 changed files with 40 additions and 38 deletions

15
telegraf/run.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/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