Fix PATH overriding
[lui-solr.git] / scripts / delete_solr.sh
index c5f9f85..6c51408 100755 (executable)
@@ -6,9 +6,9 @@ if [ "$2" != "" ] ; then
     HOST_PORT="$2"
 fi 
 
-PATH=solr4
+SOLR_PATH=solr4
 if [ "$3" != "" ] ; then 
-    PATH="$3"
+    SOLR_PATH="$3"
 fi
 
 if [ "$1" == "" ] ; then 
@@ -16,5 +16,5 @@ if [ "$1" == "" ] ; then
     exit 1 ; 
 fi  
 
-curl http://${HOST_PORT}/$PATH/update -H "Content-Type: text/xml" --data-binary "<delete><query>database:$1</query></delete>"
-curl http://${HOST_PORT}/$PATH/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false"/>'
+curl http://${HOST_PORT}/$SOLR_PATH/update -H "Content-Type: text/xml" --data-binary "<delete><query>database:$1</query></delete>"
+curl http://${HOST_PORT}/$SOLR_PATH/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false"/>'