Changeset 22574


Ignore:
Timestamp:
2010-08-05T09:52:01+12:00 (14 years ago)
Author:
sjm84
Message:

Updated the messages printed by gli.bat and gems.bat when extra permissions are required

Location:
main/trunk/gli
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/gli.bat

    r22530 r22574  
    4545
    4646:checkUserPermissions
    47 echo Checking if the collection directory is writable...
    48 echo This is a temporary file. It is safe to delete it. > "%GSDLHOME%\collect\testing.tmp" 2>nul
    49 if exist "%GSDLHOME%\collect\testing.tmp" goto deleteTempFile
    50     if "%1" == "Elevated" goto shiftElevated
     47    echo Checking if the Greenstone collection directory is writable ...
     48    (echo This is a temporary file. It is safe to delete it. > "%GSDLHOME%\collect\testing.tmp" ) 2>nul
     49    if exist "%GSDLHOME%\collect\testing.tmp" goto deleteTempFile
     50    if "%1" == "Elevated" goto printWarning
     51    echo ... FAILED
     52    echo The %PROGNAME% cannot write to the collection directory (%GSDLHOME%\collect)
     53    echo Requesting elevated status to become admin user to continue.
    5154    "%GSDLHOME%\bin\windows\gstart.exe" %0 Elevated %1 %2 %3 %4 %5 %6 %7 %8 %9
    5255    goto done
     56   
     57:printWarning
     58    echo ... FAILED
     59    echo The %PROGNAME% cannot write to the log directory (%GSDLHOME%\collect).
     60    echo Attempting to continue without permissions.
     61    goto shiftElevated
    5362
    5463:deleteTempFile
    55 del "%GSDLHOME%\collect\testing.tmp"
     64    echo ... OK
     65    del "%GSDLHOME%\collect\testing.tmp"
    5666
    5767:shiftElevated
    5868:: Shift "Elevated" (one of our own internal command words) out of the way if present
    5969:: so the command-line is as it was when the user initiated the command
    60 if "%1" == "Elevated" shift
     70    if "%1" == "Elevated" shift
    6171
    6272:findPerl
Note: See TracChangeset for help on using the changeset viewer.