From ee840812d5a21f6bb23327dee259d8d1375e48ac Mon Sep 17 00:00:00 2001 From: Alan Peabody Date: Thu, 27 Mar 2014 10:36:19 -0400 Subject: [PATCH] Adds elasticsearch support. --- scripts/elasticsearch.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/elasticsearch.sh 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