Add sleep before swarm peers check

This commit is contained in:
poka 2020-05-16 00:44:50 +02:00
parent b5e04430e4
commit 3acaaab735
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ ipfs bootstrap add /ip6/fd42:feed:feed:feed::1/tcp/4001/p2p/Qmb6Gyy3KFWTxWh4v6fB
sudo systemctl restart ipfs || err+="Restart IPFS daemon"
sleep 10
[[ ! $(ipfs swarm peers) ]] && echo "${c_red}No peers found in swarm. Please open issue :https://git.p2p.legal/axiom-team/astroport/issues" && exit 1
} # this ensures the entire script is downloaded #