Last change
on this file since 15132 was 15132, checked in by oranfry, 16 years ago |
don't try to run java unless search4j has found it
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.1 KB
|
Rev | Line | |
---|
[13235] | 1 | #!/bin/sh
|
---|
| 2 | serverlang=en
|
---|
| 3 |
|
---|
[15131] | 4 | java_min_version=1.4.0_00
|
---|
| 5 |
|
---|
[13235] | 6 | echo "Greenstone 3 Server"
|
---|
| 7 | echo "Copyright (C) 2006, New Zealand Digital Library Project, University Of Waikato"
|
---|
| 8 | echo "This software comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt"
|
---|
| 9 | echo "This is free software, and you are welcome to redistribute it"
|
---|
| 10 |
|
---|
| 11 | ## -------- Run the Greenstone 3 Server --------
|
---|
| 12 |
|
---|
| 13 | # This script must be run from within the directory in which it lives
|
---|
| 14 | thisdir=`pwd`
|
---|
| 15 | if [ ! -f "${thisdir}/gs3-server.sh" ]; then
|
---|
[14727] | 16 | echo "This script must be run from the directory in which it resides."
|
---|
[13235] | 17 | exit 1
|
---|
| 18 | fi
|
---|
| 19 |
|
---|
| 20 | ## ---- Determine GSDL3SRCHOME ----
|
---|
| 21 | gsdl3path=
|
---|
| 22 |
|
---|
| 23 | # Some users may set the above line manually
|
---|
[14727] | 24 | if [ -z "$gsdl3path" ]; then
|
---|
| 25 | gsdl3path=`pwd`
|
---|
[13235] | 26 | fi
|
---|
| 27 |
|
---|
[15131] | 28 | # Setup Greenstone3, unless it has already been done
|
---|
[14727] | 29 | if [ -z "$GSDL3SRCHOME" ]; then
|
---|
| 30 | pushd $gsdl3path > /dev/null
|
---|
| 31 | source gs3-setup.sh
|
---|
| 32 | popd > /dev/null
|
---|
[13235] | 33 | fi
|
---|
| 34 |
|
---|
| 35 |
|
---|
[14727] | 36 | # JRE_HOME or JAVA_HOME must be set correctly to run this program
|
---|
[15132] | 37 | search4j -m $java_min_version &> /dev/null
|
---|
| 38 | if [ "$?" == "0" ]; then
|
---|
| 39 | `search4j -m $java_min_version -e` org.greenstone.server.Server $GSDL3SRCHOME
|
---|
| 40 | fi
|
---|
[13235] | 41 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.