Skip to content

Instantly share code, notes, and snippets.

@furandon-pig
Last active August 29, 2015 14:01
Show Gist options
  • Save furandon-pig/5204d9f6b51a1febc8dc to your computer and use it in GitHub Desktop.
Save furandon-pig/5204d9f6b51a1febc8dc to your computer and use it in GitHub Desktop.
OSvにElasticsearchを追加(osv/app/elasticsearch/GET)
#!/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