From f58d9875e2c25e2fb3c53ccdec504d91093d2135 Mon Sep 17 00:00:00 2001 From: fjgal Date: Thu, 5 Jan 2017 20:58:35 -0500 Subject: [PATCH] Fixed "make package" for metribeat based community beats metricbeat-win.yml and metricbeat-win.full.yml are modified only if BEATNAME is "metricbeat" Fixes #3296 --- metricbeat/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metricbeat/Makefile b/metricbeat/Makefile index f22642b6b49..1b7acb55e7d 100644 --- a/metricbeat/Makefile +++ b/metricbeat/Makefile @@ -56,12 +56,13 @@ imports: # This is called by the beats packer before building starts .PHONY: before-build before-build: +ifeq ($(BEATNAME), metricbeat) # disable the system/load metricset on windows sed -i.bk 's/- load/#- load/' $(PREFIX)/metricbeat-win.yml rm $(PREFIX)/metricbeat-win.yml.bk sed -i.bk 's/- load/#- load/' $(PREFIX)/metricbeat-win.full.yml rm $(PREFIX)/metricbeat-win.full.yml.bk - +endif # Runs all collection steps and updates afterwards .PHONY: collect collect: fields collect-docs configs kibana imports