Ticket #29787: solr

File solr, 351 bytes (added by hayato_1980@…, 13 years ago)
Line 
1#!/bin/bash
2
3CMDNAME=`basename "$0"`
4
5export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
6SOLR=/opt/local/share/java/apache-solr-3.2.0
7
8usage() {
9  echo "Usage: $ solr path/to/config/dir"
10  exit 1
11}
12
13if [ -z "$1" ]; then
14  usage
15else
16  cd ${SOLR} && exec ${JAVA_HOME}/bin/java -Dsolr.solr.home=$1 -jar ${SOLR}/start.jar
17fi
18