Ticket #29787: solr
File solr, 351 bytes (added by hayato_1980@…, 13 years ago) |
---|
Line | |
---|---|
1 | #!/bin/bash |
2 | |
3 | CMDNAME=`basename "$0"` |
4 | |
5 | export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home |
6 | SOLR=/opt/local/share/java/apache-solr-3.2.0 |
7 | |
8 | usage() { |
9 | echo "Usage: $ solr path/to/config/dir" |
10 | exit 1 |
11 | } |
12 | |
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 |
17 | fi |
18 |