ipfs swarm sync only friends stations with existing ping.average.txt

This commit is contained in:
fred 2021-09-25 02:03:33 +02:00
parent 6b5f84a6a7
commit e38b4c24c1
1 changed files with 2 additions and 2 deletions

View File

@ -115,8 +115,8 @@ do
fi
fi
################################################################
## Refresh bootstrap if XID exists
if [[ "$XID" != "" ]]; then
## Refresh bootstrap if XID exists AND PING not null
if [[ "$XID" != "" && "$(cat ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/$whoisg1/ping.average.txt 2>dev/null)" != "" ]]; then
ipfs bootstrap rm "/ipfs/$ipfsnodeid" && ipfs bootstrap add "$peerline" || ipfs bootstrap rm "$peerline"
################################################################