diff --git a/htroot/ConfigUpdate_p.java b/htroot/ConfigUpdate_p.java index a418285d1..1ff816b98 100644 --- a/htroot/ConfigUpdate_p.java +++ b/htroot/ConfigUpdate_p.java @@ -178,7 +178,7 @@ public class ConfigUpdate_p { // not a valid release // can be also a restart- or deploy-file final File invalid = downloaded; - if (!(invalid.getName().endsWith(".bat") || invalid.getName().endsWith(".sh"))) { // Windows & Linux don't like deleted scripts while execution! + if (!(invalid.getName().endsWith(".bat") || invalid.getName().endsWith(".sh") || invalid.getName().endsWith(".sig"))) { // Windows & Linux don't like deleted scripts while execution! invalid.deleteOnExit(); } } diff --git a/source/de/anomic/yacy/yacyRelease.java b/source/de/anomic/yacy/yacyRelease.java index c65e53f77..8805b8542 100644 --- a/source/de/anomic/yacy/yacyRelease.java +++ b/source/de/anomic/yacy/yacyRelease.java @@ -616,6 +616,7 @@ public final class yacyRelease extends yacyVersion { if (now - downloadedFile.lastModified() > deleteAfterMillis) { // delete file FileUtils.deletedelete(downloadedFile); + FileUtils.deletedelete(new File(downloadedFile.getAbsolutePath() + ".sig")); if (downloadedFile.exists()) { Log.logWarning("STARTUP", "cannot delete old release " + downloadedFile.getAbsolutePath()); }