Skip to content

Commit

Permalink
Merge pull request elastic#4 from chayim/iss-2
Browse files Browse the repository at this point in the history
adding ability to pass in IP of elasticsearch host as an input
  • Loading branch information
monicasarbu committed May 15, 2014
2 parents a06284c + 76d1473 commit 3b21a6d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion load.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/sh

ELASTICSEARCH=http://localhost:9200/
if [ -z "$1" ]; then
_ELASTICHOST=localhost
else
_ELASTICHOST=$1
fi
ELASTICSEARCH=http://$_ELASTICHOST:9200/

for file in generated/*.json
do
Expand Down

0 comments on commit 3b21a6d

Please sign in to comment.