summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-11-01 09:18:39 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-11-01 09:22:02 +0000
commit28c26106fa8db857cd47a9add7b73dc1c327930e (patch)
tree835823bf2488a984ea727679fbff6065193fe612
parent20e7d69251673ead413b4daa576ee63bb3f5f8a4 (diff)
downloadvyos-build-28c26106fa8db857cd47a9add7b73dc1c327930e.tar.gz
vyos-build-28c26106fa8db857cd47a9add7b73dc1c327930e.zip
T5701: Fix build telegraf package
The sources of telegraf do not contnain 'etc/telegraf.conf' anymore. Generate default config telegraf.conf to fix build
-rwxr-xr-xpackages/telegraf/build.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/telegraf/build.sh b/packages/telegraf/build.sh
index 46dfc88a..2ba511d0 100755
--- a/packages/telegraf/build.sh
+++ b/packages/telegraf/build.sh
@@ -21,4 +21,7 @@ cp ${PLUGIN_DIR}/outputs/all/all.go ${SRC}/plugins/outputs/all/all.go
echo "I: Build Debian ${BUILD_ARCH} package"
cd ${SRC}
export PATH=/opt/go/bin:$PATH
+
+# Generate default telegraf config
+go run ./cmd/telegraf config > etc/telegraf.conf
LDFLAGS=-w make "${BUILD_ARCH}.deb"