From f4e35a5f2fd92eb16c01bf9b969239883686220c Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 28 Aug 2022 19:21:56 +0200 Subject: [PATCH] Update index.backup.html + .chain IPFS value --- tools/PLAYER.refresh.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/PLAYER.refresh.sh b/tools/PLAYER.refresh.sh index 8e29abbb..62976146 100755 --- a/tools/PLAYER.refresh.sh +++ b/tools/PLAYER.refresh.sh @@ -45,8 +45,15 @@ for PLAYER in $(ls ~/.zen/game/players/); do fi fi + MOATS=$(date -u +"%Y%m%d%H%M%S%4N") + [[ $DIFF ]] && cp ~/.zen/game/players/$PLAYER/ipfs/moa/.chain ~/.zen/game/players/$PLAYER/ipfs/moa/.chain.old + TW=$(ipfs add -Hq ~/.zen/game/players/$PLAYER/ipfs/moa/index.html | tail -n 1) ipfs name publish --key=$PLAYER /ipfs/$TW + + [[ $DIFF ]] && echo $TW > ~/.zen/game/players/$PLAYER/ipfs/moa/.chain + echo $MOATS > ~/.zen/game/players/$PLAYER/ipfs/moa/.moats + echo "================================================" echo "$PLAYER : http://127.0.0.1:8080/ipns/$ASTRONAUTENS" echo "================================================"