Last active
March 25, 2016 20:33
-
-
Save vlado/6dcf46fb1d37787b13d4 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-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