This commit is contained in:
2023-08-27 17:33:05 +02:00
parent 798a8932af
commit a7c9ca3f2f
9 changed files with 46 additions and 131 deletions

View File

@@ -1,13 +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"