Skip to content

Commit

Permalink
🚀 adjust build-package flow
Browse files Browse the repository at this point in the history
  • Loading branch information
anngdinh committed Jun 27, 2024
1 parent acc2f96 commit ee5351c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Makefile
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee5351c

Please sign in to comment.