Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Last active March 10, 2016 11:04
Show Gist options
  • Save lukaszkorecki/8acf422d99ec0ada772e to your computer and use it in GitHub Desktop.
Save lukaszkorecki/8acf422d99ec0ada772e to your computer and use it in GitHub Desktop.
sudo apt-get -y update
sudo apt-get -y install python-software-properties
sudo apt-add-repository ppa:openjdk-r/ppa
if grep elasticsearch /etc/apt/sources.list; then
log "ES installed"
else
curl https://packages.elasticsearch.org/GPG-KEY-elasticsearch > /tmp/es-key
sudo apt-key add /tmp/es-key
sudo add-apt-repository "deb http://packages.elasticsearch.org/elasticsearch/2.x/debian stable main"
sudo apt update
fi
sudo apt-get install -y -q openjdk-8-jdk openjdk-8-jre elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment