Ticket #31155: solr.in.diff
File solr.in.diff, 926 bytes (added by humem (humem), 13 years ago) |
---|
-
files/solr.in
old new 2 2 3 3 CMDNAME=`basename "$0"` 4 4 5 export JAVA_HOME=@JAVA_HOME@6 SOLR=@TARGET@7 8 5 usage() { 9 echo "Usage: ${CMDNAME} path/to/config/dir" 1>&26 echo "Usage: ${CMDNAME} [-h|--help] [-ja] [solr_home]" 1>&2 10 7 exit 1 11 8 } 12 9 13 if [ -z "$1" ]; then 14 usage 15 else 16 cd ${SOLR} && exec ${JAVA_HOME}/bin/java -Dsolr.solr.home="$1" -jar ${SOLR}/start.jar 10 SOLR_PATH=@solr_path@ 11 12 while test -n "$1"; do 13 case "$1" in 14 -h|--help) usage ;; 15 -ja) SOLR_SUFFIX="-ja"; shift ;; 16 *) SOLR_HOME="$1"; shift ;; 17 esac 18 done 19 20 if [ -z "$SOLR_HOME" ]; then 21 SOLR_HOME=${SOLR_PATH}/solr${SOLR_SUFFIX} 17 22 fi 23 24 java -Dsolr.clustering.enabled=true \ 25 -Dsolr.solr.home="${SOLR_HOME}" \ 26 -Djetty.home="${SOLR_PATH}" \ 27 -jar ${SOLR_PATH}/start.jar