Last change
on this file since 14843 was 14843, checked in by oranfry, 16 years ago |
bringing in the change from the 2.75 branch, which checks for writatbility on GSDLHOME
|
File size:
1.1 KB
|
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.
|
---|
25 | echo Alternatively, re-install Greenstone to a location where you have Full
|
---|
26 | echo Control already, such as a your home folder or 'My Documents'.
|
---|
27 | echo.
|
---|
28 | echo GSDLHOME is:
|
---|
29 | echo %GSDLHOME%
|
---|
30 | echo.
|
---|
31 | echo.
|
---|
32 | echo.
|
---|
33 | goto TheEnd
|
---|
34 |
|
---|
35 | :EnvNotSet
|
---|
36 | echo GSDLHOME not set
|
---|
37 |
|
---|
38 | :TheEnd |
---|
Note:
See
TracBrowser
for help on using the repository browser.