This commit is contained in:
2022-06-18 20:27:11 +02:00
parent 7b603ffa48
commit 0671feda78
3 changed files with 3 additions and 0 deletions

15
telegraf/settings.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