summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser/toscaparser/tests/artifacts/elasticsearch/create.sh
blob: c34126c6627680e4c6aeed6cf74f03c43fa6f00d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# This script installs java and elasticsearch

apt-get update
apt-get install -y openjdk-7-jre-headless

wget -qO - https://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add -
echo "deb http://packages.elasticsearch.org/elasticsearch/1.5/debian stable main" | tee -a /etc/apt/sources.list

apt-get update
apt-get install -y elasticsearch

# set up to run as service
update-rc.d elasticsearch defaults 95 10