Last change
on this file since 14794 was 14794, checked in by oranfry, 16 years ago |
put check writability stuff in gsdl rather than gli, packaged it into its own batch file
|
File size:
918 bytes
|
Line | |
---|
1 | @echo off
|
---|
2 |
|
---|
3 | if "%GSDLHOME%" == "" goto EnvNotSet
|
---|
4 |
|
---|
5 | REM test if we have write permission on the greenstone install directory
|
---|
6 | echo Checking if GSDLHOME is writable..
|
---|
7 | echo This is a temporary file. It is safe to delete it. > "%GSDLHOME%\etc\testing.tmp"
|
---|
8 | if not exist "%GSDLHOME%\etc\testing.tmp" goto CantWrite
|
---|
9 | del "%GSDLHOME%\etc\testing.tmp"
|
---|
10 | echo Writable
|
---|
11 | goto TheEnd
|
---|
12 |
|
---|
13 | :CantWrite
|
---|
14 | echo.
|
---|
15 | echo.
|
---|
16 | echo.
|
---|
17 | echo -----------------------------------
|
---|
18 | echo WARNING: CANNOT WRITE TO GSDLHOME
|
---|
19 | echo -----------------------------------
|
---|
20 | echo Greenstone needs write-permission on the GSDLHOME directory,
|
---|
21 | echo but we have detected that this is not present.
|
---|
22 | echo Please grant 'Full Control' to the current user (%username%)
|
---|
23 | echo on the GSDLHOME directory, plus all subfolders and files, and try again.
|
---|
24 | echo GSDLHOME is:
|
---|
25 | echo %GSDLHOME%
|
---|
26 | echo.
|
---|
27 | echo.
|
---|
28 | echo.
|
---|
29 | goto TheEnd
|
---|
30 |
|
---|
31 | :EnvNotSet
|
---|
32 | echo GSDLHOME not set
|
---|
33 |
|
---|
34 | :TheEnd |
---|
Note:
See
TracBrowser
for help on using the repository browser.