X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=optimize_solr.sh;h=1c22ed8d8dd0aa276db275ebe57fe2102d2e73fd;hb=e047ee54d210a220e2d57244f6d796f0f4713d3f;hp=90d9a26860c951c837f51467080bd784e69868ae;hpb=cc818b5486321d771aaa214a27f428c66e6d0438;p=lui-solr.git
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