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