Last active
August 29, 2015 13:56
-
-
Save nbrownus/8816099 to your computer and use it in GitHub Desktop.
Make a .deb from kibana-latest.zip
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="3.0.0" | |
BUILD="betable2" | |
set -e -x | |
ORIGPWD="$(pwd)" | |
cd "$(mktemp -d)" | |
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM | |
curl -L -O "https://download.elasticsearch.org/kibana/kibana/kibana-${VERSION}.zip" | |
unzip "kibana-${VERSION}.zip" | |
mv "kibana-${VERSION}" "kibana" | |
rm -f "$ORIGPWD/kibana_${VERSION}-${BUILD}_amd64.deb" | |
fakeroot fpm -m "Nate Brown <[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