Revert "fix"

This reverts commit a7c9ca3f2f.
This commit is contained in:
2023-08-27 17:53:19 +02:00
parent a9f9747019
commit 73a0bfffe5
9 changed files with 131 additions and 46 deletions

13
telegraf/settings.sh Executable file
View File

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