From 41883ccc6f7e6d8f18ed797b2659a48d5a2ec6e4 Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 12 Jan 2023 23:58:06 +0100 Subject: [PATCH] target="me" --- ASTROBOT/PLAYER.refresh.sh | 5 ++++- www/iframe.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ASTROBOT/PLAYER.refresh.sh b/ASTROBOT/PLAYER.refresh.sh index f00e7a05..12d88a4d 100755 --- a/ASTROBOT/PLAYER.refresh.sh +++ b/ASTROBOT/PLAYER.refresh.sh @@ -187,7 +187,7 @@ for PLAYER in ${PLAYERONE[@]}; do # cp -f ~/.zen/game/players/${PLAYER}/ipfs/${FPLAYER}.rss.json ~/.zen/game/players/$PLAYER/FRIENDS/${FPLAYER}.rss.json [[ -d ~/.zen/game/players/$PLAYER/FRIENDS ]] \ - && cat ${MY_PATH}/../www/iframe.html | sed "s~_ME_~${myIPFS}/ipns/${ASTRONAUTENS}~g" | sed "s~_IFRIENDHEAD_~${IFRIENDHEAD}~g" > ~/.zen/game/players/$PLAYER/FRIENDS/index.html + && cat ${MY_PATH}/../www/iframe.html | sed "s~_ME_~/ipns/${ASTRONAUTENS}~g" | sed "s~_IFRIENDHEAD_~${IFRIENDHEAD}~g" > ~/.zen/game/players/$PLAYER/FRIENDS/index.html [[ -s ~/.zen/game/players/$PLAYER/FRIENDS/index.html ]] \ && FRAME=$(ipfs add -Hq ~/.zen/game/players/$PLAYER/FRIENDS/index.html | tail -n 1) \ @@ -204,6 +204,9 @@ if [[ -d ~/.zen/tmp/${IPFSNODEID} ]]; then ## Merge actual online version ipfs get -o ~/.zen/tmp/${IPFSNODEID} /ipns/${IPFSNODEID}/ + ## MAP CACHE CLEANING + rm -f ~/.zen/tmp/${IPFSNODEID}/*TW.json + ############################################ NSIZE=$(du -b ~/.zen/tmp/${IPFSNODEID} | tail -n 1 | cut -f 1) [[ $BSIZE != $NSIZE ]] \ diff --git a/www/iframe.html b/www/iframe.html index fee0d290..8ede8c9a 100644 --- a/www/iframe.html +++ b/www/iframe.html @@ -127,7 +127,7 @@ h1, p {

Astroport.ONE

- MOA : _IFRIENDHEAD_ + MOA : _IFRIENDHEAD_