Skip to content

Commit

Permalink
applied configuration path patch
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4697 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Apr 14, 2008
1 parent 96e39b2 commit cb93ded
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/yacy.java
Expand Up @@ -225,13 +225,13 @@ private static void startup(File homePath, long startupMemFree, long startupMemT
f.deleteOnExit();

pro = new File(homePath, "libx").exists();
String oldconf = "DATA/SETTINGS/httpProxy.conf";
String newconf = "DATA/SETTINGS/yacy.conf";
String oldconf = "DATA/SETTINGS/httpProxy.conf".replace("/", File.separator);
String newconf = "DATA/SETTINGS/yacy.conf".replace("/", File.separator);
File oldconffile = new File(homePath, oldconf);
if (oldconffile.exists()) {
oldconffile.renameTo(new File(homePath, newconf));
}
sb = new plasmaSwitchboard(homePath, "defaults/yacy.init", newconf, pro);
sb = new plasmaSwitchboard(homePath, "defaults/yacy.init".replace("/", File.separator), newconf, pro);
sbSync.V(); // signal that the sb reference was set

// save information about available memory at startup time
Expand Down

0 comments on commit cb93ded

Please sign in to comment.