From 054298d95726ef9981969fa7049c144f13169aab Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 8 Aug 2018 08:56:05 -0700 Subject: [PATCH] Retry snap install 3 times, sometimes the snap server 503s --- ci/testnet-deploy.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/testnet-deploy.sh b/ci/testnet-deploy.sh index 7c5387a530..417e4de916 100755 --- a/ci/testnet-deploy.sh +++ b/ci/testnet-deploy.sh @@ -50,7 +50,12 @@ fi netBasename=${SOLANA_NET_NAME/-*/} # Figure installation command -SNAP_INSTALL_CMD="sudo snap install solana --$SOLANA_SNAP_CHANNEL --devmode" +SNAP_INSTALL_CMD="\ + for i in {1..3}; do \ + sudo snap install solana --$SOLANA_SNAP_CHANNEL --devmode && break; + sleep 1; \ + done \ +" LOCAL_SNAP=$1 if [[ -n $LOCAL_SNAP ]]; then if [[ ! -f $LOCAL_SNAP ]]; then