Skip to content

Commit

Permalink
*) added check if archive for update is OK, install if OK, else just …
Browse files Browse the repository at this point in the history
  • Loading branch information
low012 committed Dec 31, 2007
1 parent 21b92e8 commit 408cb7a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/de/anomic/yacy/yacyVersion.java
Expand Up @@ -405,12 +405,18 @@ public static void deployRelease(String release) {
String script =
"#!/bin/sh" + serverCore.LF_STRING +
"cd " + sb.getRootPath() + "/DATA/RELEASE/" + serverCore.LF_STRING +
"if gunzip -t " + release + serverCore.LF_STRING +
"then" + serverCore.LF_STRING +
"gunzip -c " + release + " | tar xf -" + serverCore.LF_STRING +
"while [ -f ../yacy.running ]; do" + serverCore.LF_STRING +
"sleep 1" + serverCore.LF_STRING +
"done" + serverCore.LF_STRING +
"cp -Rf yacy/* ../../" + serverCore.LF_STRING +
"rm -Rf yacy" + serverCore.LF_STRING +
"else" + serverCore.LF_STRING +
"while [ -f ../yacy.running ]; do" + serverCore.LF_STRING +
"sleep 1" + serverCore.LF_STRING +
"fi" + serverCore.LF_STRING +
"cd ../../" + serverCore.LF_STRING +
"nohup ./startYACY.sh > /dev/null" + serverCore.LF_STRING;
File scriptFile = new File(sb.getRootPath(), "DATA/RELEASE/update.sh");
Expand Down

0 comments on commit 408cb7a

Please sign in to comment.