Changeset 23945
- Timestamp:
- 2011-04-21T18:01:39+12:00 (13 years ago)
- Location:
- main/trunk/greenstone2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/gsicontrol.bat
r23252 r23945 44 44 echo configure-apache [config-filename] 45 45 echo configure-cgi 46 echo reset-gsdlhome [config-filename] 47 echo (Save a copy of cgi-bin/gsdlsite.cfg to preserve any customisations) 46 48 echo set-port 47 49 echo test-gsdlhome … … 81 83 if "%target%" == "configure-apache" goto cfgapach 82 84 if "%target%" == "configure-cgi" goto cfgcgi 85 if "%target%" == "reset-gsdlhome" goto resethome 83 86 :: already tested gsdlhome (and web-stop-tested) above, don't want to keep looping on it 84 87 if "%target%" == "test-gsdlhome" goto exit … … 161 164 162 165 166 :: reset-gsdlhome forces configure-cgi by deleting gsdlsite.cfg 167 :resethome 168 echo. 169 if exist "%GSDLHOME%\cgi-bin\gsdlsite.cfg" ( 170 echo **** WARNING. Local changes made to %GSDLHOME%\cgi-bin\gsdlsite.cfg will be lost. 171 del "%GSDLHOME%\cgi-bin\gsdlsite.cfg" 172 ) 173 goto cfgweb 174 163 175 ::configure-web 164 176 ::configure-cgi -
main/trunk/greenstone2/gsicontrol.sh
r23726 r23945 139 139 } 140 140 141 # forces configure-cgi by deleting gsdlsite.cfg 142 function reset-gsdlhome { 143 if test -e "$GSDLHOME/cgi-bin/gsdlsite.cfg" ; then 144 echo "**** WARNING. Local changes made to $GSDLHOME/cgi-bin/gsdlsite.cfg will be lost."; 145 rm -f "$GSDLHOME/cgi-bin/gsdlsite.cfg"; 146 fi 147 configure-web $1 148 } 149 141 150 function web-status { 142 151 test-gsdlhome … … 211 220 echo " configure-apache [config-filename]" 212 221 echo " configure-cgi" 222 echo " reset-gsdlhome [config-filename]\n\t(Save a copy of cgi-bin/gsdlsite.cfg to preserve any customisations)" 213 223 echo " test-gsdlhome" 214 224 echo " web-stop-tested" … … 249 259 set-port) 250 260 configure-port-and-connection;; 261 reset-gsdlhome) 262 reset-gsdlhome;; 251 263 test-gsdlhome) 252 264 test-gsdlhome;;
Note:
See TracChangeset
for help on using the changeset viewer.