coming soon

This commit is contained in:
fred 2024-03-15 20:23:58 +01:00
parent e644780bfe
commit 2e1c414fb6
2 changed files with 16 additions and 6 deletions

View File

@ -520,8 +520,9 @@ for PLAYER in ${PLAYERONE[@]}; do
#################################### UNPLUG ACCOUNT
### PUBLISH RSS &
IRSS=$(ipfs add -q ~/.zen/game/players/${PLAYER}/ipfs/${PLAYER}.rss.json | tail -n 1) \
&& ipfs --timeout 180s name publish --key="${PLAYER}_feed" /ipfs/${IRSS}
&& ipfs --timeout 180s 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}"
@ -553,10 +554,13 @@ for PLAYER in ${PLAYERONE[@]}; do
~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${REGLAT}_${REGLON}/_${SECLAT}_${SECLON}/_${LAT}_${LON}/RSS/
mkdir -p ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${REGLAT}_${REGLON}/_${SECLAT}_${SECLON}/_${LAT}_${LON}/TW/${PLAYER}
#~ cp ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${REGLAT}_${REGLON}/_${SECLAT}_${SECLON}/_${LAT}_${LON}/TW/${PLAYER}/
## IPFS PLAYER TW ##
## IPFS PLAYER TW #
# /ipfs/${TW}
echo "<meta http-equiv=\"refresh\" content=\"0; url='/ipfs/${TW}'\" />${TODATE}:${PLAYER}" \
> ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${REGLAT}_${REGLON}/_${SECLAT}_${SECLON}/_${LAT}_${LON}/TW/${PLAYER}/index.html
# /ipns/${ASTRONAUTENS}
echo "<meta http-equiv=\"refresh\" content=\"0; url='/ipns/${ASTRONAUTENS}'\" />${PLAYER}" \
> ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${REGLAT}_${REGLON}/_${SECLAT}_${SECLON}/_${LAT}_${LON}/TW/${PLAYER}/_index.html
## IPNS UMAP _index.html ##
echo "<meta http-equiv=\"refresh\" content=\"0; url='/ipns/${UMAPNS}'\" />${TODATE}:_${LAT}_${LON}" \
> ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${REGLAT}_${REGLON}/_${SECLAT}_${SECLON}/_${LAT}_${LON}/_index.html

View File

@ -64,9 +64,15 @@ for key in ${UKEYS[@]}; do
&& medo=$((medo +1)) && floop=$((floop -1)) \
|| rm -Rf ~/.zen/tmp/flashmem/$key # GOT IT or NOT ?
## TODO search for TW /ipfs/ and refresh
#~ TWS=($(cat ~/.zen/tmp/flashmem/$key/TW/*/index.html))
## Search for TW /ipfs/ and refresh
#~ TWS=($(cat ~/.zen/tmp/flashmem/$key/TW/*/_index.html | grep -o "url='/[^']*'"| sed "s/url='\(.*\)'/\1/" | awk -F"/" '{print $3}' | shuf))
#~ for tw in ${TWS[@]}; do
#~ mkdir -p ~/.zen/tmp/flashmem/tw/$tw
#~ ipfs --timeout 180s get -o ~/.zen/tmp/flashmem/tw/$tw /ipns/$tw
#~ [[ $? == 0 ]] \
#~ && medo=$((medo +1)) && floop=$((floop -1)) \
#~ || rm -Rf ~/.zen/tmp/flashmem/tw/$tw
#~ done
[ $floop -gt 33 ] && break