projects
/
lui-solr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix PATH overriding
[lui-solr.git]
/
scripts
/
optimize_solr.sh
diff --git
a/scripts/optimize_solr.sh
b/scripts/optimize_solr.sh
index
d608b4a
..
83e4219
100755
(executable)
--- a/
scripts/optimize_solr.sh
+++ b/
scripts/optimize_solr.sh
@@
-6,15
+6,15
@@
if [ "$2" != "" ] ; then
HOST_PORT="$2"
fi
HOST_PORT="$2"
fi
-PATH=solr4
+SOLR_PATH=solr4
if [ "$3" != "" ] ; then
if [ "$3" != "" ] ; then
- PATH="$3"
+ SOLR_PATH="$3"
fi
if [ "$1" != "YES" ] ; then
fi
if [ "$1" != "YES" ] ; then
- echo "$0 YES [[HOST:PORT] PATH] (default $HOST_PORT/$PATH)"
+ echo "$0 YES [[HOST:PORT] SOLR_PATH] (default $HOST_PORT/$SOLR_PATH)"
exit 1 ;
fi
exit 1 ;
fi
-curl http://${HOST_PORT}/$PATH/update -H "Content-Type: text/xml" --data-binary '<optimize waitSearcher="false" expungeDeletes="true" />'
+curl http://${HOST_PORT}/$SOLR_PATH/update -H "Content-Type: text/xml" --data-binary '<optimize waitSearcher="false" expungeDeletes="true" />'