Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix for auto-updater: delete old libraries before copy of new one

orbiter84222e3b4f82
diff --git a/source/de/anomic/yacy/yacyRelease.java b/source/de/anomic/yacy/yacyRelease.java
index fb5c4f5df..2bdb0f7d6 100644
--- a/source/de/anomic/yacy/yacyRelease.java
+++ b/source/de/anomic/yacy/yacyRelease.java
@@ -545,6 +545,7 @@ public final class yacyRelease extends yacyVersion {
"while [ -f ../yacy.running ]; do" + serverCore.LF_STRING +
"sleep 1" + serverCore.LF_STRING +
"done" + serverCore.LF_STRING +
+ "rm " + apphome + "/lib/*" + serverCore.LF_STRING +
"cp -Rf yacy/* " + apphome + serverCore.LF_STRING +
"rm -Rf yacy" + serverCore.LF_STRING +
/* ((releaseFile.getName().endsWith(".gz")) ?