Update tosca lib to version 0.5
[parser.git] / tosca2heat / tosca-parser / toscaparser / tests / data / CSAR / tosca_elk / Scripts / elasticsearch / create.sh
1 #!/bin/bash
2 # This script installs java and elasticsearch
3
4 apt-get update
5 apt-get install -y openjdk-7-jre-headless
6
7 wget -qO - https://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add -
8 echo "deb http://packages.elasticsearch.org/elasticsearch/1.5/debian stable main" | tee -a /etc/apt/sources.list
9
10 apt-get update
11 apt-get install -y elasticsearch
12
13 # set up to run as service
14 update-rc.d elasticsearch defaults 95 10