Ignore:
Timestamp:
2010-08-05T14:16:18+12:00 (14 years ago)
Author:
sjm84
Message:

These files will now print an error and quit if the log directory is missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/gs2-web-server.bat

    r22572 r22576  
    2626
    2727:checkUserPermissions
     28    echo.
    2829    echo Checking if the Greenstone log directory is writable ...
     30    if not exist "%GSDLHOME%\etc\logs-gsi" goto missingLogDir
    2931    (echo This is a temporary file. It is safe to delete it. > "%GSDLHOME%\etc\logs-gsi\testing.tmp" ) 2>nul
    3032    if exist "%GSDLHOME%\etc\logs-gsi\testing.tmp" goto deleteTempFile 
     
    3436    echo Requesting elevated status to become admin user to continue.
    3537    "%GSDLHOME%\bin\windows\gstart.exe" %0 Elevated %1 %2 %3 %4 %5 %6 %7 %8 %9
    36     goto done
     38    goto exit
     39   
     40:missingLogDir
     41    echo ... FAILED
     42    echo The Greenstone log directory does not exist (%GSDLHOME%\etc\logs-gsi). Please reinstall Greenstone.
     43    pause
     44    goto exit
    3745   
    3846:printWarning
Note: See TracChangeset for help on using the changeset viewer.