Changeset 27862
- Timestamp:
- 2013-07-15T22:34:08+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/gs3-server.sh
r27861 r27862 39 39 echo "Setting Greenstone3 web home writable area to be: $gsdl3_writablehome" 40 40 41 if [ ! -d "$gsdl3_writablehome" ] ; then42 echo "Creating the directory: $gsdl3_writablehome"43 41 44 mkdir -p "$gsdl3_writablehome" 45 mkdir -p "$gsdl3_writablehome/packages" 46 mkdir -p "$gsdl3_writablehome/logs" 47 mkdir -p "$gsdl3_writablehome/ext/solr" 42 # if [ ! -d "$gsdl3_writablehome" ] ; then 43 # echo "Creating the directory: $gsdl3_writablehome" 48 44 49 chmod a+rwx"$gsdl3_writablehome"50 chmod a+rwx"$gsdl3_writablehome/packages"51 chmod a+rwx"$gsdl3_writablehome/logs"52 chmod a+rwx"$gsdl3_writablehome/ext/solr"45 # mkdir -p "$gsdl3_writablehome" 46 # mkdir -p "$gsdl3_writablehome/packages" 47 # mkdir -p "$gsdl3_writablehome/logs" 48 # mkdir -p "$gsdl3_writablehome/ext/solr" 53 49 54 # echo "Copying to $gsdl3_writablehome/packages/tomcat" 55 # /bin/cp -r "$GSDL3SRCHOME/packages/tomcat" "$gsdl3_writablehome/packages/." 50 # chmod a+rwx "$gsdl3_writablehome" 51 # chmod a+rwx "$gsdl3_writablehome/packages" 52 # chmod a+rwx "$gsdl3_writablehome/logs" 53 # chmod a+rwx "$gsdl3_writablehome/ext/solr" 56 54 57 # echo "=> Copying Greenstone's web/WEB-INF to writable area" 55 ## echo "Copying to $gsdl3_writablehome/packages/tomcat" 56 ## /bin/cp -r "$GSDL3SRCHOME/packages/tomcat" "$gsdl3_writablehome/packages/." 57 58 ## echo "=> Copying Greenstone's web/WEB-INF to writable area" 58 59 59 # gsdl3_home=$GSDL3HOME60 # /bin/cp -r "$gsdl3_home/WEB-INF" "$gsdl3_writablehome/."61 # /bin/cp -r "$gsdl3_home/index.html" "$gsdl3_writablehome/."62 fi60 ## gsdl3_home=$GSDL3HOME 61 ## /bin/cp -r "$gsdl3_home/WEB-INF" "$gsdl3_writablehome/." 62 ## /bin/cp -r "$gsdl3_home/index.html" "$gsdl3_writablehome/." 63 ## fi 63 64 fi 64 65 } … … 85 86 popd > /dev/null 86 87 88 87 89 check_gsdl3home_writable 88 90 … … 90 92 if [ $gsdl3home_isreadonly = 1 ] ; then 91 93 opt_properties="-Dgsdl3home.isreadonly=true -Dgsdl3.writablehome=$gsdl3_writablehome" 94 95 # Calling ant target to initialize the gsdl3-writablehome area 96 # ... including the all important global.properties. 97 98 ant $opt_properties configure-web 99 92 100 fi 93 101
Note:
See TracChangeset
for help on using the changeset viewer.