Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save winglian/e81b078555ec4d858ac0 to your computer and use it in GitHub Desktop.

Select an option

Save winglian/e81b078555ec4d858ac0 to your computer and use it in GitHub Desktop.

Revisions

  1. winglian revised this gist Mar 25, 2016. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions bd_upgrade_es_on_semaphoreci.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,6 @@
    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"
    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'
  2. @vlado vlado renamed this gist Apr 22, 2015. 1 changed file with 0 additions and 0 deletions.
  3. @vlado vlado created this gist Apr 22, 2015.
    7 changes: 7 additions & 0 deletions bd_semaphore_build_script.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    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'