diff --git a/zen/gchange_IPFS_swarm.sh b/zen/gchange_IPFS_swarm.sh index f71532e..a505674 100755 --- a/zen/gchange_IPFS_swarm.sh +++ b/zen/gchange_IPFS_swarm.sh @@ -115,9 +115,9 @@ echo $(date) ## SWARM LOST !! EMERGENCY RECOVERY ######################################################################## -ipfs bootstrap +ipfs bootstrap > /tmp/ipfs_bootstrap ## REBOOTSTRAP -[[ $(ipfs bootstrap | wc -l) -lt 2 ]] && ipfs bootstrap rm --all +[[ $(cat /tmp/ipfs_bootstrap | wc -l) -lt 2 ]] && ipfs bootstrap rm --all for bootnode in $(cat ~/.zen/astrXbian/A_boostrap_nodes.txt | grep -Ev "#") # remove comments do ipfsnodeid=${bootnode##*/}