From fdc6a4c5fd03bffe8b454bf1d6485e109ad6bac2 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 22 Mar 2024 16:26:39 +0100 Subject: [PATCH] reset log file --- _12345.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/_12345.sh b/_12345.sh index 0e1c3606..461bde73 100755 --- a/_12345.sh +++ b/_12345.sh @@ -12,6 +12,7 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized . "${MY_PATH}/tools/my.sh" ## SEND LOG TO ~/.zen/tmp/_12345.log +rm ~/.zen/tmp/_12345.log exec 2>&1 >> ~/.zen/tmp/_12345.log PORT=12345 @@ -84,13 +85,13 @@ while true; do lastrun=$(cat ~/.zen/tmp/${IPFSNODEID}/_MySwarm.moats) duree=$(expr ${MOATS} - $lastrun) - ### STOP SWARM SYNC 1H BEFORE 20H12 - [[ $(date +"%H%M") -gt 1912 ]] \ - && echo "$(date +"%H%M") : 20H12 is coming... " && continue - ## FIXING TIC TAC FOR NODE & SWARM REFRESH ( 1H ) if [[ ${duree} -gt 3600000 ]]; then + ### STOP SWARM SYNC 1H BEFORE 20H12 + [[ $(date +"%H%M") -gt 1912 ]] \ + && echo "$(date +"%H%M") : 20H12 is coming... " && continue + PLAYERONE=($(ls -t ~/.zen/game/players/ | grep "@" 2>/dev/null)) [[ ${PLAYERONE[@]} == "" ]] && echo "EMPTY ASTROPORT - NO PLAYER - NO PUBLISHING" && continue