Forked from vlado/bd_upgrade_es_on_semaphoreci.sh
Last active
March 25, 2016 20:36
-
-
Save winglian/e81b078555ec4d858ac0 to your computer and use it in GitHub Desktop.
[BD] Upgrade Elasticsearch on SemaphoreCI
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
| rbenv global 2.2.2 | |
| sudo service elasticsearch stop | |
| if ! [ -e .semaphore-cache/elasticsearch-2.2.1.deb ]; then (cd .semaphore-cache; curl -OL https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.2.1/elasticsearch-2.2.1.deb); fi | |
| echo Y | sudo dpkg -i .semaphore-cache/elasticsearch-2.2.1.deb | |
| 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