NODE refresh for publishing new state

This commit is contained in:
fred 2023-10-16 20:00:10 +02:00
parent a68d8b33ab
commit 601d33a463
2 changed files with 4 additions and 3 deletions

View File

@ -47,8 +47,8 @@ espeak "Players refresh" > /dev/null 2>&1
# Refresh ~/.zen/game/players/PLAYER # Refresh ~/.zen/game/players/PLAYER
~/.zen/Astroport.ONE/RUNTIME/PLAYER.refresh.sh ~/.zen/Astroport.ONE/RUNTIME/PLAYER.refresh.sh
espeak "REFRESHING SWARM" > /dev/null 2>&1 espeak "REFRESHING NODE" > /dev/null 2>&1
~/.zen/Astroport.ONE/RUNTIME/SWARM.refresh.sh ~/.zen/Astroport.ONE/RUNTIME/NODE.refresh.sh
espeak "REFRESHING UPLANET" > /dev/null 2>&1 espeak "REFRESHING UPLANET" > /dev/null 2>&1
~/.zen/Astroport.ONE/RUNTIME/UPLANET.refresh.sh ~/.zen/Astroport.ONE/RUNTIME/UPLANET.refresh.sh

View File

@ -12,7 +12,7 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
# LOAD EXTRA DATA TO CACHE ~/.zen/tmp/${IPFSNODEID}/ # LOAD EXTRA DATA TO CACHE ~/.zen/tmp/${IPFSNODEID}/
# PUBLISH STATION BALISE # PUBLISH STATION BALISE
############################################ ############################################
echo "## RUNNING MAP.refresh" echo "## RUNNING NODE.refresh"
[[ ${IPFSNODEID} == "" ]] && echo "IPFSNODEID is empty - EXIT -" && exit 1 [[ ${IPFSNODEID} == "" ]] && echo "IPFSNODEID is empty - EXIT -" && exit 1
################################################################# #################################################################
@ -44,6 +44,7 @@ if [[ -d ~/.zen/tmp/${IPFSNODEID} ]]; then
cp -Rf ~/.zen/game/players/${PLAYER}/FRIENDS/* ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/FRIENDS/ cp -Rf ~/.zen/game/players/${PLAYER}/FRIENDS/* ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/FRIENDS/
done done
cp ~/.zen/GPS ~/.zen/tmp/${IPFSNODEID}/
echo "############################################ MY MAP " echo "############################################ MY MAP "
ls ~/.zen/tmp/${IPFSNODEID}/ ls ~/.zen/tmp/${IPFSNODEID}/
echo "############################################" echo "############################################"