diff options
| author | orbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2008-04-17 22:21:03 +0000 |
|---|---|---|
| committer | orbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2008-04-17 22:21:03 +0000 |
| commit | d03940f2ec65d4a8a7dd5e39a590c51780f3a375 (patch) | |
| tree | 76bf5aa423aadf8e2093fe0eb1b18f6e0c29fffd /startYACY.bat | |
| parent | d1ee2318669c57089674a2b7c9a48707bae250a0 (diff) | |
- included patch from http://forum.yacy-websuche.de/viewtopic.php?p=7193#p7193
- fixed problem with crawl profile editor after deletion of a crawl profile
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4706 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'startYACY.bat')
| -rw-r--r-- | startYACY.bat | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/startYACY.bat b/startYACY.bat index f1088b732..df5c5c434 100644 --- a/startYACY.bat +++ b/startYACY.bat @@ -14,6 +14,7 @@ set jms= set javacmd=-Xmx64m -Xms10m
set priolvl=0
set priority=/NORMAL
+if exist DATA\SETTINGS\httpProxy.conf GoTo :RENAMEINDEX
if exist DATA\SETTINGS\yacy.conf GoTo :GETSTARTOPTS
:STARTJAVA
@@ -36,6 +37,17 @@ start "YaCy" %priority% /B /WAIT java %javacmd% -classpath %CLASSPATH% yacy if not exist DATA\yacy.restart GoTo :END
del DATA\yacy.restart
+Rem PUBLIC is now freeworld (r4575)
+:RENAMEINDEX
+for /F "tokens=1,2 delims==" %%i in (DATA\SETTINGS\httpProxy.conf) do (
+ if "%%i"=="network.unit.name" set networkname=%%j
+)
+if not defined networkname set networkname=PUBLIC
+cd DATA\INDEX
+ren PUBLIC %networkname%
+cd ..
+cd ..
+
Rem This target is used to read java runtime parameters out of the yacy config file
:GETSTARTOPTS
for /F "tokens=1,2 delims==" %%i in (DATA\SETTINGS\yacy.conf) do (
|
