forked from STI/Astroport.ONE
ipfs ping & (re)connect boostraps
This commit is contained in:
parent
521c7d5469
commit
8ba27150bd
|
@ -266,7 +266,7 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||
echo "(☉_☉ ) (☉_☉ ) (☉_☉ ) RSS"
|
||||
## CREATING 30 DAYS RSS STREAM
|
||||
tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \
|
||||
--output ~/.zen/game/players/${PLAYER}/ipfs --render '.' "${PLAYER}.rss.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[days:created[-30]!is[system]]'
|
||||
--output ~/.zen/game/players/${PLAYER}/ipfs --render '.' "${PLAYER}.rss.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[days:created[-30]!is[system]!tag[G1Voeu]]'
|
||||
[[ ! -s ~/.zen/game/players/${PLAYER}/ipfs/${PLAYER}.rss.json ]] && echo "NO ${PLAYER} RSS - BAD ~/.zen/game/players/${PLAYER}/ipfs/${PLAYER}.rss.json -"
|
||||
|
||||
## CHECK FOR EMPTY RSS + 30 DAYS BIRTHDATE
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
ipfs stats dht wan
|
||||
ipfs stats dht wan > ~/.zen/tmp/ipfs.stats.dht.wan
|
||||
cat ~/.zen/tmp/ipfs.stats.dht.wan
|
||||
|
||||
for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#" | rev | cut -d '/' -f 1 | rev | grep -v '^[[:space:]]*$')
|
||||
for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#" | grep -v '^[[:space:]]*$')
|
||||
do
|
||||
echo
|
||||
ipfsnodeid=${bootnode##*/}
|
||||
|
@ -12,8 +13,7 @@ for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#" |
|
|||
|| echo "BAD NODE $bootnode"
|
||||
echo "*****"
|
||||
|
||||
cat ~/.zen/tmp/ipfs.stats.dht.wan | grep $ipfsnodeid
|
||||
|
||||
done
|
||||
|
||||
|
||||
|
||||
echo "TODO : search for bootstrap and friends better connectivity"
|
||||
|
|
Loading…
Reference in New Issue