diff --git a/htroot/ConfigUpdate_p.java b/htroot/ConfigUpdate_p.java index 8ec5894cb..e5a31f363 100644 --- a/htroot/ConfigUpdate_p.java +++ b/htroot/ConfigUpdate_p.java @@ -89,18 +89,17 @@ public class ConfigUpdate_p { } else { // there is a version that is more recent. Load it and re-start with it sb.getLog().logInfo("AUTO-UPDATE: downloading more recent release " + updateVersion.url); - boolean downloaded = yacyVersion.downloadRelease(updateVersion); + File downloaded = yacyVersion.downloadRelease(updateVersion); prop.put("candeploy_autoUpdate_downloadedRelease", updateVersion.name); - File releaseFile = new File(sb.getRootPath(), "DATA/RELEASE/" + updateVersion.name); boolean devenvironment = yacyVersion.combined2prettyVersion(sb.getConfig("version","0.1")).startsWith("dev"); if (devenvironment) { sb.getLog().logInfo("AUTO-UPDATE: omiting update because this is a development environment"); prop.put("candeploy_autoUpdate", "3"); - } else if ((!downloaded) || (!releaseFile.exists()) || (releaseFile.length() == 0)) { + } else if ((downloaded == null) || (!downloaded.exists()) || (downloaded.length() == 0)) { sb.getLog().logInfo("AUTO-UPDATE: omiting update because download failed (file cannot be found or is too small)"); prop.put("candeploy_autoUpdate", "4"); } else { - yacyVersion.deployRelease(updateVersion.name); + yacyVersion.deployRelease(downloaded); sb.terminate(5000); sb.getLog().logInfo("AUTO-UPDATE: deploy and restart initiated"); prop.put("candeploy_autoUpdate", "1"); diff --git a/htroot/Steering.java b/htroot/Steering.java index c67cc08d5..b9f8f0a49 100644 --- a/htroot/Steering.java +++ b/htroot/Steering.java @@ -88,7 +88,7 @@ public class Steering { String releaseFileName = post.get("releaseinstall", ""); File releaseFile = new File(sb.getRootPath(), "DATA/RELEASE/" + releaseFileName); if ((!devenvironment) && (releaseFile.length() > 0) && (releaseFile.exists())) { - yacyVersion.deployRelease(releaseFileName); + yacyVersion.deployRelease(releaseFile); } prop.put("info", "5"); prop.put("info_release", releaseFileName); diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java index bab13f471..0a0b4e321 100644 --- a/source/de/anomic/plasma/plasmaSwitchboard.java +++ b/source/de/anomic/plasma/plasmaSwitchboard.java @@ -2012,15 +2012,14 @@ public final class plasmaSwitchboard extends serverAbstractSwitch, Comparable, Comparable, Comparable, Comparable, Comparable