Changeset 23973 for main/trunk/greenstone2/gsicontrol.sh
- Timestamp:
- 2011-04-29T16:28:16+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/gsicontrol.sh
r23966 r23973 141 141 142 142 function configure-web { 143 if test ! -e "gs2-server.app/Contents/document.wflow" ; then 144 sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "gs2-server.app/Contents/document.wflow.in" > "gs2-server.app/Contents/document.wflow" 145 fi 146 if test ! -e "gli.app/Contents/document.wflow" ; then 147 sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "gli.app/Contents/document.wflow.in" > "gli.app/Contents/document.wflow" 148 fi 149 if test ! -e "client-gli.app/Contents/document.wflow" ; then 150 sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "client-gli.app/Contents/document.wflow.in" > "client-gli.app/Contents/document.wflow" 151 fi 152 if test ! -e "gems.app/Contents/document.wflow" ; then 153 sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "gems.app/Contents/document.wflow.in" > "gems.app/Contents/document.wflow" 154 fi 155 143 156 configure-cgi 144 157 configure-apache $1 … … 147 160 # forces configure-cgi by deleting gsdlsite.cfg 148 161 function reset-gsdlhome { 149 162 echo "" ; 150 163 if test -e "$GSDLHOME/$cgibin/gsdlsite.cfg" ; then 151 152 153 154 fi 155 156 157 158 159 sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "gs2-server.app/Contents/document.wflow.in" >"gs2-server.app/Contents/document.wflow"160 sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "gli.app/Contents/document.wflow.in" >"gli.app/Contents/document.wflow"161 sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "client-gli.app/Contents/document.wflow.in" >"client-gli.app/Contents/document.wflow"162 sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "gems.app/Contents/document.wflow.in" >"gems.app/Contents/document.wflow"164 /bin/mv "$GSDLHOME/$cgibin/gsdlsite.cfg" "$GSDLHOME/$cgibin/gsdlsite.cfg.bak" ; 165 echo "**** Regenerating $GSDLHOME/$cgibin/gsdlsite.cfg" ; 166 echo "**** Previous version of file now $GSDLHOME/$cgibin/gsdlsite.cfg.bak" ; 167 fi 168 169 log4jprop=$GSDLHOME/lib/java/log4j.properties 170 sed "s^@gsdl2home@^$GSDLHOME^g" "$log4jprop.in" > "$log4jprop" 171 172 rm -f "gs2-server.app/Contents/document.wflow" 173 rm -f "gli.app/Contents/document.wflow" 174 rm -f "client-gli.app/Contents/document.wflow" 175 rm -f "gems.app/Contents/document.wflow" 163 176 164 177 configure-web $1
Note:
See TracChangeset
for help on using the changeset viewer.