From 28c26106fa8db857cd47a9add7b73dc1c327930e Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 1 Nov 2023 09:18:39 +0000 Subject: T5701: Fix build telegraf package The sources of telegraf do not contnain 'etc/telegraf.conf' anymore. Generate default config telegraf.conf to fix build --- packages/telegraf/build.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages') 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" -- cgit v1.2.3