Skip to content

Instantly share code, notes, and snippets.

@dopey
Forked from nbrownus/kibana-deb.sh
Last active August 29, 2015 14:12
Show Gist options
  • Save dopey/029550b23e08e79f271d to your computer and use it in GitHub Desktop.
Save dopey/029550b23e08e79f271d to your computer and use it in GitHub Desktop.
# Run this in a path you don't care about, things may get deleted!
VERSION="4.1.1"
BUILD="betable1"
set -e -x
ORIGPWD="$(pwd)"
cd "$(mktemp -d)"
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM
curl -L -O "https://download.elastic.co/kibana/kibana/kibana-${VERSION}-linux-x64.tar.gz"
tar -zxvf "kibana-${VERSION}-linux-x64.tar.gz"
mv "kibana-${VERSION}-linux-x64" "kibana"
rm -f "$ORIGPWD/kibana_${VERSION}-${BUILD}_amd64.deb"
fakeroot fpm -m "Max Furman <max@betable.com>" \
-n "kibana" -v "$VERSION-$BUILD" \
-p "$ORIGPWD/kibana_${VERSION}-${BUILD}_amd64.deb" \
--prefix "/usr/local/share" \
-s "dir" -t "deb" "kibana"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment