From 1a1a9ed56c5005c2faddbf6a535ff955a849d1de Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Thu, 1 Jul 2021 13:25:53 +0200
Subject: [PATCH] add sleep after failed download

---
 deploy_app.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/deploy_app.sh b/deploy_app.sh
index 783b2a9..1823657 100755
--- a/deploy_app.sh
+++ b/deploy_app.sh
@@ -116,7 +116,12 @@ function deploy(){
     typeset -i local isupdate=$defaultupdate
     ${selfdir}/bin/getfile.sh -f ${IMLCI_PROJECT}.tgz -o ${downloadtmp}
     if [ $? -ne 0 ]; then
+        echo Download failed.
         echo Repeating request with debug param -d to get the error...
+        
+        # added sleep to repeat the request with another hashed secret
+        sleep 2
+        
         ${selfdir}/bin/getfile.sh -d -f ${IMLCI_PROJECT}.tgz -o ${downloadtmp}
         exit 1
     fi
-- 
GitLab