Skip to content

Commit

Permalink
Merge pull request #99 from tsg/fix_install_cfg
Browse files Browse the repository at this point in the history
Fix the install-cfg target
  • Loading branch information
ruflin committed Oct 17, 2015
2 parents 8c4fdfe + a4e1083 commit 2833fb3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ GODEP=$(GOPATH)/bin/godep
GOFILES = $(shell find . -type f -name '*.go')
SHELL=/bin/bash

# default install folder used by the beats-packer
PREFIX?=/build

filebeat: $(GOFILES)
# first make sure we have godep
go get github.com/tools/godep
Expand Down Expand Up @@ -73,11 +76,11 @@ install-cfg:
cp etc/filebeat.template.json $(PREFIX)/filebeat.template.json
# linux
cp etc/filebeat.yml $(PREFIX)/filebeat-linux.yml
sed -i 's$#registryFile: .filebeat$registryFile: /var/lib/filebeat/registry' $(PREFIX)/filebeat-linux.yml
sed -i 's@#registry_file: .filebeat@registry_file: /var/lib/filebeat/registry@' $(PREFIX)/filebeat-linux.yml
# binary
cp etc/filebeat.yml $(PREFIX)/filebeat-binary.yml
# darwin
cp etc/filebeat.yml $(PREFIX)/filebeat-darwin.yml
# win
cp etc/filebeat.yml $(PREFIX)/filebeat-win.yml
sed -i 's$#registryFile: .filebeat$registryFile: C:\ProgramData\filebeat\registry' $(PREFIX)/filebeat-windows.yml
sed -i 's@#registry_file: .filebeat@registry_file: "C:/ProgramData/\filebeat/registry"@' $(PREFIX)/filebeat-win.yml

0 comments on commit 2833fb3

Please sign in to comment.