From 6a13ba21710a84d5fac7cd349e01645b5d839142 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 3 Jul 2013 15:12:33 +0200 Subject: [PATCH] More configurable --- optimize_solr.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/optimize_solr.sh b/optimize_solr.sh index 90d9a26..1c22ed8 100755 --- a/optimize_solr.sh +++ b/optimize_solr.sh @@ -4,6 +4,11 @@ if [ "$1" != "YES" ] ; then echo "No confirmation given" exit 1 ; fi -HOST=localhost -PORT=8080 -curl http://$HOST:$PORT/solr/update -H "Content-Type: text/xml" --data-binary '' \ No newline at end of file + +HOST_PORT=localhost:8080 + +if [ "$2" != "" ] ; then + HOST_PORT="$2" +fi + +curl http://${HOST_PORT}/solr/update -H "Content-Type: text/xml" --data-binary '' \ No newline at end of file -- 1.7.10.4