diff --git a/RUNTIME/PLAYER.refresh.sh b/RUNTIME/PLAYER.refresh.sh index c859010b..4e0cc144 100755 --- a/RUNTIME/PLAYER.refresh.sh +++ b/RUNTIME/PLAYER.refresh.sh @@ -331,8 +331,9 @@ for PLAYER in ${PLAYERONE[@]}; do ################################################## ############################### LOCAL "MICRO LEDGER" ################## UPDATING ${PLAYER}/ipfs/moa - [[ $DIFF ]] && cp ~/.zen/game/players/${PLAYER}/ipfs/moa/.chain \ - ~/.zen/game/players/${PLAYER}/ipfs/moa/.chain.$(cat ~/.zen/game/players/${PLAYER}/ipfs/moa/.moats) + [[ $DIFF ]] \ + && cp ~/.zen/game/players/${PLAYER}/ipfs/moa/.chain \ + ~/.zen/game/players/${PLAYER}/ipfs/moa/.chain.$(cat ~/.zen/game/players/${PLAYER}/ipfs/moa/.moats) TW=$(ipfs add -Hq ~/.zen/game/players/${PLAYER}/ipfs/moa/index.html | tail -n 1) ipfs name publish --key=${PLAYER} /ipfs/${TW} @@ -390,7 +391,7 @@ for PLAYER in ${PLAYERONE[@]}; do #################################### UNPLUG ACCOUNT IRSS=$(ipfs add -q ~/.zen/game/players/${PLAYER}/ipfs/${PLAYER}.rss.json | tail -n 1) \ - && ipfs name publish --key="${PLAYER}_feed" /ipfs/${IRSS} + && ipfs name publish --key="${PLAYER}_feed" /ipfs/${IRSS} ######################### REPLACE TW with REDIRECT to latest IPFS or IPNS (reduce 12345 cache size) [[ ! -z ${TW} ]] && TWLNK="/ipfs/${TW}" || TWLNK="/ipns/${ASTRONAUTENS}" diff --git a/RUNTIME/SECTOR.refresh.sh b/RUNTIME/SECTOR.refresh.sh index 959b96c9..4f548f4f 100755 --- a/RUNTIME/SECTOR.refresh.sh +++ b/RUNTIME/SECTOR.refresh.sh @@ -185,6 +185,14 @@ for SECTOR in ${SECTORS[@]}; do ## SET SECTOR sed -i "s~_SECTOR_~${SECTOR}~g" ${INDEX} + ## GET ALL TWs in that SECTOR + mkdir ~/.zen/tmp/${MOATS}/${SECTOR}/TWs + + cp -rf ~/.zen/tmp/swarm/12D*/UPLANET/__/_*_*/_${SLAT}_${SLON}/_*_*/TW/* \ + ~/.zen/tmp/${MOATS}/${SECTOR}/TWs/ + cp -rf ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_*_*/_${SLAT}_${SLON}/_*_*/TW/* \ + ~/.zen/tmp/${MOATS}/${SECTOR}/TWs/ + ## GET ALL RSS json's AND Feed SECTOR TW with it RSSNODE=($(ls ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_*_*/_${SLAT}_${SLON}/_*_*/RSS/*.rss.json 2>/dev/null)) NL=${#RSSNODE[@]} diff --git a/templates/UPlanetSector/index.html b/templates/UPlanetSector/index.html index 72ab6990..5d182344 100644 --- a/templates/UPlanetSector/index.html +++ b/templates/UPlanetSector/index.html @@ -160,6 +160,7 @@ iframe { | _ | | | + | _ |