Changeset 19023

Show
Ignore:
Timestamp:
16.04.2009 19:11:30 (10 years ago)
Author:
ak19
Message:

1. gsicontrol.sh target configure-apache generates the llssite.cfg file from the llssite.cfg.in template file if one didn't already exist. 2. Before launching server.jar, GS2-server.sh creates the llssite.cfg file from the template llssite.cfg.in file if it did not exist yet. This needs to be done before server.jar is called because that will exit if the file does not exist on startup.

Location:
gsdl/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/gs2-server.sh

    r18990 r19023  
    5858fi 
    5959 
     60# If there's no llssite.cfg file, copy from the template 
     61if [ ! -e "$GSDLHOME/llssite.cfg" ]; then 
     62    if [ -e "$GSDLHOME/llssite.cfg.in" ]; then 
     63    cp "$GSDLHOME/llssite.cfg.in" "$GSDLHOME/llssite.cfg" 
     64    else 
     65    echo "Warning: could not find llssite.cfg.in to create llssite.cfg from." 
     66    fi 
     67fi 
     68     
    6069 
    6170# JRE_HOME or JAVA_HOME must be set correctly to run this program 
  • gsdl/trunk/gsicontrol.sh

    r18866 r19023  
    7070    test-gsdlhome 
    7171    configfile=$1 ; 
     72# if no configfile given, launch it with llssite.cfg. Create it from the template if needed. 
    7273    if [ "x$configfile" = "x" ]; then 
     74    if test ! -e "$GSDLHOME/llssite.cfg" && test -e "$GSDLHOME/llssite.cfg.in" ; then 
     75        cp "$GSDLHOME/llssite.cfg.in" "$GSDLHOME/llssite.cfg" ; 
     76    fi 
    7377    configfile="$GSDLHOME/llssite.cfg"; 
    7478    fi ;