reset log file

This commit is contained in:
fred 2024-03-22 16:26:39 +01:00
parent ce6b8de059
commit fdc6a4c5fd
1 changed files with 5 additions and 4 deletions

View File

@ -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