Last active
March 10, 2016 11:04
-
-
Save lukaszkorecki/8acf422d99ec0ada772e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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