-
-
Save dopey/029550b23e08e79f271d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 <[email protected]>" \ | |
-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