@ -371,8 +371,9 @@ public final class yacyVersion implements Comparator, Comparable {
try {
try {
serverLog . logInfo ( "RESTART" , "INITIATED" ) ;
serverLog . logInfo ( "RESTART" , "INITIATED" ) ;
String script =
String script =
"#!/bin/sh" + serverCore . lfstring +
"cd " + sb . getRootPath ( ) + "/DATA/RELEASE/" + serverCore . lfstring +
"cd " + sb . getRootPath ( ) + "/DATA/RELEASE/" + serverCore . lfstring +
"while [ - e ../yacy.running ]; do" + serverCore . lfstring +
"while [ - f ../yacy.running ]; do" + serverCore . lfstring +
"sleep 1" + serverCore . lfstring +
"sleep 1" + serverCore . lfstring +
"done" + serverCore . lfstring +
"done" + serverCore . lfstring +
"cd ../../" + serverCore . lfstring +
"cd ../../" + serverCore . lfstring +
@ -395,9 +396,10 @@ public final class yacyVersion implements Comparator, Comparable {
plasmaSwitchboard sb = plasmaSwitchboard . getSwitchboard ( ) ;
plasmaSwitchboard sb = plasmaSwitchboard . getSwitchboard ( ) ;
serverLog . logInfo ( "UPDATE" , "INITIATED" ) ;
serverLog . logInfo ( "UPDATE" , "INITIATED" ) ;
String script =
String script =
"#!/bin/sh" + serverCore . lfstring +
"cd " + sb . getRootPath ( ) + "/DATA/RELEASE/" + serverCore . lfstring +
"cd " + sb . getRootPath ( ) + "/DATA/RELEASE/" + serverCore . lfstring +
"gunzip -c " + release + " | tar xf -" + serverCore . lfstring +
"gunzip -c " + release + " | tar xf -" + serverCore . lfstring +
"while [ - e ../yacy.running ]; do" + serverCore . lfstring +
"while [ - f ../yacy.running ]; do" + serverCore . lfstring +
"sleep 1" + serverCore . lfstring +
"sleep 1" + serverCore . lfstring +
"done" + serverCore . lfstring +
"done" + serverCore . lfstring +
"cp -Rf yacy/* ../../" + serverCore . lfstring +
"cp -Rf yacy/* ../../" + serverCore . lfstring +