From 91548dd61662ede9cf09760ed9b304c4cbbb61f1 Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 1 Jan 2019 14:13:49 -0200 Subject: [PATCH] Pass Solr URL as parameter to shell script --- check_solr.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/check_solr.sh b/check_solr.sh index 17ce5fe65..b3c4760c4 100644 --- a/check_solr.sh +++ b/check_solr.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Pass the base SOLR URL as parameter, i.e., bash check_solr http://localhost:8983 + +SOLR_URL=$1 + echo "Waiting for solr connection at $SOLR_URL ..." while true; do echo "$SOLR_URL/solr/admin/collections?action=LIST"