Last active
August 29, 2015 14:01
-
-
Save furandon-pig/5204d9f6b51a1febc8dc to your computer and use it in GitHub Desktop.
OSvにElasticsearchを追加(osv/app/elasticsearch/GET)
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
#!/usr/bin/env bash | |
set -e | |
MAJOR=1 | |
VERSION=${MAJOR}.1.1 | |
dir=elasticsearch-$VERSION | |
archive=$dir.tar.gz | |
mkdir -p upstream | |
pushd upstream | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/${archive} | |
tar zxvf $archive | |
popd | |
cat > usr.manifest <<EOF | |
# This file is automatically generated | |
/usr/elasticsearch/**:\${MODULE_DIR}/upstream/$dir/** | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment