-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (20 loc) · 751 Bytes
/
Makefile
File metadata and controls
23 lines (20 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
BEATNAME=filebeat
SYSTEM_TESTS=true
TEST_ENVIRONMENT=false
include scripts/Makefile
# This is called by the beats-packer to obtain the configuration file and
# default template
.PHONY: install-cfg
install-cfg:
cp etc/filebeat.template.json $(PREFIX)/filebeat.template.json
# linux
cp etc/filebeat.yml $(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@#registry_file: .filebeat@registry_file: "C:/ProgramData/filebeat/registry"@' $(PREFIX)/filebeat-win.yml