root/gsdl/trunk/bin/script/checkwritability.bat @ 14843

Revision 14843, 1.1 KB (checked in by oranfry, 12 years ago)

bringing in the change from the 2.75 branch, which checks for writatbility on GSDLHOME

Line 
1@echo off
2
3if "%GSDLHOME%" == "" goto EnvNotSet
4
5REM test if we have write permission on the greenstone install directory
6echo Checking if GSDLHOME is writable..
7echo This is a temporary file. It is safe to delete it. > "%GSDLHOME%\etc\testing.tmp"
8if not exist "%GSDLHOME%\etc\testing.tmp" goto CantWrite
9del "%GSDLHOME%\etc\testing.tmp"
10echo Writable
11goto TheEnd
12
13:CantWrite
14echo.
15echo.
16echo.
17echo -----------------------------------
18echo  WARNING: CANNOT WRITE TO GSDLHOME
19echo -----------------------------------
20echo Greenstone needs write-permission on the GSDLHOME directory,
21echo but we have detected that this is not present.
22echo Please grant 'Full Control' to the current user (%username%)
23echo on the GSDLHOME directory, plus all subfolders and files, and try again.
24echo.
25echo Alternatively, re-install Greenstone to a location where you have Full
26echo Control already, such as a your home folder or 'My Documents'.
27echo.
28echo GSDLHOME is:
29echo %GSDLHOME%
30echo.
31echo.
32echo.
33goto TheEnd
34
35:EnvNotSet
36echo GSDLHOME not set
37
38:TheEnd
Note: See TracBrowser for help on using the browser.