source: gli/branches/2.75/checkwritability.bat@ 14793

Last change on this file since 14793 was 14793, checked in by oranfry, 16 years ago

always check writability of GSDLHOME before commiting

File size: 847 bytes
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 WARNING: CANNOT WRITE TO GSDLHOME
16echo -----------------------------------
17echo Greenstone needs write-permission on the GSDLHOME directory,
18echo but we have detected that this is not present.
19echo Please grant 'Full Control' to the current user (%username%)
20echo on the following folder and all subfolders and files, and try again:
21echo %GSDLHOME%
22goto TheEnd
23
24:EnvNotSet
25echo GSDLHOME not set
26
27:TheEnd
Note: See TracBrowser for help on using the repository browser.