Skip to content

Instantly share code, notes, and snippets.

@vlado
Last active March 25, 2016 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vlado/6dcf46fb1d37787b13d4 to your computer and use it in GitHub Desktop.
Save vlado/6dcf46fb1d37787b13d4 to your computer and use it in GitHub Desktop.
[BD] Upgrade Elasticsearch on SemaphoreCI
rbenv global 2.2.2
sudo service elasticsearch stop
if ! [ -e .semaphore-cache/elasticsearch-1.5.1.deb ]; then (cd .semaphore-cache; curl -OL https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.5.1.deb); fi
echo Y | sudo dpkg -i .semaphore-cache/elasticsearch-1.5.1.deb
sudo sh -c "echo 'script.disable_dynamic: false' >> /etc/elasticsearch/elasticsearch.yml"
sudo service elasticsearch start
sleep 5 && curl -XGET 'localhost:9200'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment