|
|
@ -225,13 +225,13 @@ public final class yacy {
|
|
|
|
f.deleteOnExit();
|
|
|
|
f.deleteOnExit();
|
|
|
|
|
|
|
|
|
|
|
|
pro = new File(homePath, "libx").exists();
|
|
|
|
pro = new File(homePath, "libx").exists();
|
|
|
|
String oldconf = "DATA/SETTINGS/httpProxy.conf";
|
|
|
|
String oldconf = "DATA/SETTINGS/httpProxy.conf".replace("/", File.separator);
|
|
|
|
String newconf = "DATA/SETTINGS/yacy.conf";
|
|
|
|
String newconf = "DATA/SETTINGS/yacy.conf".replace("/", File.separator);
|
|
|
|
File oldconffile = new File(homePath, oldconf);
|
|
|
|
File oldconffile = new File(homePath, oldconf);
|
|
|
|
if (oldconffile.exists()) {
|
|
|
|
if (oldconffile.exists()) {
|
|
|
|
oldconffile.renameTo(new File(homePath, newconf));
|
|
|
|
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
|
|
|
|
sbSync.V(); // signal that the sb reference was set
|
|
|
|
|
|
|
|
|
|
|
|
// save information about available memory at startup time
|
|
|
|
// save information about available memory at startup time
|
|
|
|