Skip to content

Instantly share code, notes, and snippets.

@nickmarden
Created October 9, 2015 10:18
Show Gist options
  • Save nickmarden/2d41661acdad234ea566 to your computer and use it in GitHub Desktop.
Save nickmarden/2d41661acdad234ea566 to your computer and use it in GitHub Desktop.
#!/bin/bash -x
rm -fr $HOME/elasticsearch
mkdir -p $HOME/elasticsearch
mkdir -p $HOME/elasticsearch/data
mkdir -p $HOME/elasticsearch/logs
cp -p config/travis/elasticsearch-client.yml config/elasticsearch.yml
cat config/elasticsearch.yml
sed "s#__HOME__#$HOME#g;" config/travis/elasticsearch-server.yml > $HOME/elasticsearch/elasticsearch.yml
cat $HOME/elasticsearch/elasticsearch.yml
sed "s#__HOME__#$HOME#g;" config/travis/elasticsearch.sh > $HOME/elasticsearch/elasticsearch.sh
cat $HOME/elasticsearch/elasticsearch.sh
bash -x $HOME/elasticsearch/elasticsearch.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment