diff --git a/scripts/elasticsearch.sh b/scripts/elasticsearch.sh new file mode 100644 index 0000000..1db0a48 --- /dev/null +++ b/scripts/elasticsearch.sh @@ -0,0 +1,8 @@ +apt-get install -y openjdk-7-jre-headless +if [ ! -f ~/elasticsearch-1.0.1.deb ]; then + cd ~/ + wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb + dpkg -i elasticsearch-1.0.1.deb + service elasticsearch start + update-rc.d elasticsearch defaults 95 10 +fi