Skip to content

Instantly share code, notes, and snippets.

@lazywebm
lazywebm / filebeat_armhf.sh
Last active October 18, 2023 20:14
Repackaging filebeat as .deb for 32 bit Raspbian
#!/usr/bin/env bash
# v1.2 / 2021-05-29 / Jan Schumacher / [email protected]
# https://jschumacher.info/2021/03/up-to-date-filebeat-for-32bit-raspbian-armhf/
#
# v1.2: shellcheck'd, fixing variable double quoting. Using "awk 'FNR <= 1'" instead of "head -n 1" to avoid PIPEFAIL and 141 error.
# v1.1: Removing realtive paths, fixing dpkg-deb repackage method, updating help text, typos.
set -Eeuo pipefail
#set -Eeu