Changeset 15132

Show
Ignore:
Timestamp:
26.03.2008 15:15:00 (11 years ago)
Author:
oranfry
Message:

don't try to run java unless search4j has found it

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/gs3-server.sh

    r15131 r15132  
    3535 
    3636# JRE_HOME or JAVA_HOME must be set correctly to run this program 
    37 `search4j -m $java_min_version -e` org.greenstone.server.Server $GSDL3SRCHOME  
     37search4j -m $java_min_version &> /dev/null 
     38if [ "$?" == "0" ]; then 
     39    `search4j -m $java_min_version -e` org.greenstone.server.Server $GSDL3SRCHOME  
     40fi 
    3841