From ee5351cf13260edd5fc6dbcb9acfa79ae1648489 Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 27 Jun 2024 10:02:47 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20adjust=20build-package=20flow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) mode change 100644 => 100755 Makefile diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 index ba8a093c990d0..a5b531bf06b76 --- a/Makefile +++ b/Makefile @@ -131,14 +131,9 @@ config: @echo "generating default config $(GOOS)" # go run ./cmd/telegraf config > etc/telegraf.conf - rm -rf etc/telegraf.conf - cp -rf etc/telegraf_linux.conf etc/telegraf.conf - # cp -rf etc/telegraf_windows.conf etc/telegraf.conf - - # @if [ $(GOOS) = "windows" ]; then \ - # rm -rf etc/telegraf.conf \ - # cp -rf etc/telegraf_windows.conf etc/telegraf.conf; \ - # fi + @if [ $(GOOS) != "windows" ]; then cp -rf etc/telegraf_linux.conf etc/telegraf.conf; fi + @if [ $(GOOS) = "windows" ]; then cp -rf etc/telegraf_windows.conf etc/telegraf.conf; fi + .PHONY: docs docs: build_tools embed_readme_inputs embed_readme_outputs embed_readme_processors embed_readme_aggregators embed_readme_secretstores