BUG in ipfs management. UPGRADE!!

This commit is contained in:
qo-op 2020-04-29 20:37:53 +02:00
parent 9ec495a09b
commit de0f4ebfd4
2 changed files with 6 additions and 6 deletions

View File

@ -42,12 +42,12 @@ You could have run it twice and answer "scuttlebutt" if it is missing.
NOTE!! If you already have SSB, IPFS and Silkaj instaled aready, just run
```
$PATH/zen/tools/make_G1SSB_secret.sh
$PATH/zen/ssb_IPFS_swarm.sh
$PATH/zen/cron_VRFY.sh
./zen/tools/make_G1SSB_secret.sh
./zen/ssb_IPFS_swarm.sh
./zen/cron_VRFY.sh
```
it will create your new account with credentials.
It will create your new account with credentials.
So you can easily use with gchange.fr and cesium.app
@poka

View File

@ -55,10 +55,10 @@ for SSBFRIEND in $(cat /tmp/ssb-friends.txt); do
TRYME=$(sbotc query.read '{"query":[{"$filter":{"value":{"author": "'"$SSBFRIEND"'", "content":{"type":"ipfstryme"}}}}]}' | jq -r .value?.content?.text | tail -n 1)
## REMOVE NOTfriends from IPFS swarm
[[ $(grep -Rwl "$SSBFRIEND" /tmp/ssb-NOTfriends.txt) ]] && ipfs swarm disconnect $TRYME && ipfs bootstrap rm $TRYME && continue
[[ $TRYME ]] && [[ $(grep -Rwl "$SSBFRIEND" /tmp/ssb-NOTfriends.txt) ]] && echo "NOT $TRYME" && ipfs swarm disconnect $TRYME && ipfs bootstrap rm $TRYME && continue
## ADD Friend to our IPFS swarm
[[ $TRYME ]] && ipfs swarm connect $TRYME && ipfs bootstrap add $TRYME
[[ $TRYME ]] && echo "Friend $TRYME" && ipfs swarm connect $TRYME && ipfs bootstrap add $TRYME
done