git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6964 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
low012 15 years ago
parent d851758dc6
commit 2de0ded377

@ -66,7 +66,8 @@ public class ConfigUpdate_p {
prop.put("candeploy_autoUpdate", "0"); prop.put("candeploy_autoUpdate", "0");
if (post != null) { if (post != null) {
if (post.containsKey("update")) { // check if update is supposed to be installed and a release is defined
if (post.containsKey("update") && post.get("releaseinstall", "").length() > 0) {
prop.put("forwardToSteering", "1"); prop.put("forwardToSteering", "1");
prop.putHTML("forwardToSteering_release",post.get("releaseinstall", "")); prop.putHTML("forwardToSteering_release",post.get("releaseinstall", ""));
prop.put("deploys", "1"); prop.put("deploys", "1");

@ -77,7 +77,7 @@ public class Steering {
final boolean devenvironment = new File(sb.getRootPath(), ".svn").exists(); final boolean devenvironment = new File(sb.getRootPath(), ".svn").exists();
final String releaseFileName = post.get("releaseinstall", ""); final String releaseFileName = post.get("releaseinstall", "");
final File releaseFile = new File(sb.getRootPath(), "DATA/RELEASE/".replace("/", File.separator) + releaseFileName); final File releaseFile = new File(sb.getRootPath(), "DATA/RELEASE/".replace("/", File.separator) + releaseFileName);
if ((!devenvironment) && (releaseFile.length() > 0) && (releaseFile.exists())) { if ((!devenvironment) && (releaseFileName.length() > 0) && (releaseFile.exists())) {
yacyRelease.deployRelease(releaseFile); yacyRelease.deployRelease(releaseFile);
} }
prop.put("info", "5"); prop.put("info", "5");

Loading…
Cancel
Save