source: greenstone3/trunk/gs3-server.sh@ 15048

Last change on this file since 15048 was 14727, checked in by qq6, 17 years ago

looking for the JRE home first then the JAVA home while starting the gs3 server

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