Skip to content

Commit

Permalink
Update beats to 7.11.1 (#406)
Browse files Browse the repository at this point in the history
- Make sure we ship the OSS version
- Add prepare-package as a dependency for package-windows

(cherry picked from commit ff73bb9)
  • Loading branch information
mpfz0r authored Mar 11, 2021
1 parent 8ebf5d3 commit 89c7225
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ package-linux32: ## Create Linux i386 system package
fpm-cook -t deb package dist/recipe32.rb
fpm-cook -t rpm package dist/recipe32.rb

package-windows: ## Create Windows installer
package-windows: prepare-package ## Create Windows installer
@mkdir -p dist/pkg
makensis -DVERSION=$(COLLECTOR_VERSION) -DVERSION_SUFFIX=$(COLLECTOR_VERSION_SUFFIX) -DREVISION=$(COLLECTOR_REVISION) dist/recipe.nsi
dist/chocolatey/gensha.sh $(COLLECTOR_VERSION) $(COLLECTOR_REVISION) $(COLLECTOR_VERSION_SUFFIX)
Expand Down
8 changes: 4 additions & 4 deletions dist/fetch_collectors.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

ARCHS=( x86 x86_64 )
FILEBEAT_VERSION=7.6.2
WINLOGBEAT_VERSION=7.6.2
FILEBEAT_VERSION=7.11.1
WINLOGBEAT_VERSION=7.11.1

# $1: beat name
# $2: beat operating system
Expand All @@ -21,7 +21,7 @@ download_beat()
archive="/tmp/${name}-${version}-${os}-${arch}.zip"
if [ ! -f $archive ]; then
echo "==> Downloading ${name}-${version}-${os}-${arch}"
curl -o $archive https://artifacts.elastic.co/downloads/beats/${name}/${name}-${version}-${os}-${arch}.zip
curl -o $archive https://artifacts.elastic.co/downloads/beats/${name}/${name}-oss-${version}-${os}-${arch}.zip
fi
unzip -o -d dist/collectors/${name}/${os}/${arch} $archive
mv dist/collectors/${name}/${os}/${arch}/${name}-${version}-${os}-${arch}/* dist/collectors/${name}/${os}/${arch}/
Expand All @@ -31,7 +31,7 @@ download_beat()
archive="/tmp/${name}-${version}-${os}-${arch}.tar.gz"
if [ ! -f $archive ]; then
echo "==> Downloading ${name}-${version}-${os}-${arch}"
curl -o $archive https://artifacts.elastic.co/downloads/beats/${name}/${name}-${version}-${os}-${arch}.tar.gz
curl -o $archive https://artifacts.elastic.co/downloads/beats/${name}/${name}-oss-${version}-${os}-${arch}.tar.gz
fi
tar -xzf $archive --strip-components=1 -C dist/collectors/${name}/${os}/${arch}
;;
Expand Down

0 comments on commit 89c7225

Please sign in to comment.