Changeset 27837

Show
Ignore:
Timestamp:
13.07.2013 01:03:13 (6 years ago)
Author:
davidb
Message:

gs3-server.sh script does (after all) need to set up the Greenstone writable directory. This logic also exists in build.xml, but is duplicated here to help Server3.java startup

Files:
1 modified

Legend:

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

    r27830 r27837  
    3838    echo " ... no." 
    3939    echo "Setting Greenstone3 web home writable area to be: $gsdl3_writablehome" 
     40 
     41    if [ ! -d "$gsdl3_writablehome" ] ; then 
     42        echo "Creating the directory: $gsdl3_writablehome" 
     43 
     44        mkdir -p "$gsdl3_writablehome"  
     45        mkdir -p "$gsdl3_writablehome/packages"  
     46        mkdir -p "$gsdl3_writablehome/logs"  
     47 
     48        chmod a+rwx "$gsdl3_writablehome"  
     49        chmod a+rwx "$gsdl3_writablehome/packages"  
     50        chmod a+rwx "$gsdl3_writablehome/logs"  
     51 
     52        echo "Copying to $gsdl3_writablehome/packages/tomcat" 
     53            /bin/cp -r "$GSDL3SRCHOME/packages/tomcat" "$gsdl3_writablehome/packages/." 
     54 
     55            echo "=> Copying Greenstone's web/WEB-INF to writable area" 
     56         
     57        gsdl3_home=$GSDL3HOME 
     58        /bin/cp -r "$gsdl3_home/WEB-INF" "$gsdl3_writablehome/." 
     59        /bin/cp -r "$gsdl3_home/index.html" "$gsdl3_writablehome/." 
     60    fi 
    4061    fi 
    4162}