From 3acaaab7354b1a3331347238e3091eecb825b639 Mon Sep 17 00:00:00 2001 From: poka Date: Sat, 16 May 2020 00:44:50 +0200 Subject: [PATCH] Add sleep before swarm peers check --- .install/ipfs_alone.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.install/ipfs_alone.sh b/.install/ipfs_alone.sh index a7dec67..7d1433c 100644 --- a/.install/ipfs_alone.sh +++ b/.install/ipfs_alone.sh @@ -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 #