From da81ca8f36bc41b9f7b15fd6ed8866c0504c177a Mon Sep 17 00:00:00 2001 From: Ali Maredia Date: Wed, 29 Mar 2017 16:42:18 -0400 Subject: [PATCH] nfs-ganesha: fix build_deb shaman polling loop exit status The curl command sometimes returns 504, since the chacra repository isn't ready yet. That exit status stops the rest of the script from running instead of running through the loop for $TIME_LIMIT and rerunning curl every $INTERVAL. This fix ensures the exit status is always true. Signed-off-by: Ali Maredia --- nfs-ganesha/build/build_deb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfs-ganesha/build/build_deb b/nfs-ganesha/build/build_deb index 0f6f19522..a707ba23d 100644 --- a/nfs-ganesha/build/build_deb +++ b/nfs-ganesha/build/build_deb @@ -14,7 +14,7 @@ REPO_FOUND=0 # poll shaman for up to 10 minutes while [ "$SECONDS" -le "$TIME_LIMIT" ] do - SHAMAN_MIRROR=`curl --fail -L ${REPO_URL}` + SHAMAN_MIRROR=`curl --fail -L ${REPO_URL} || true` if [[ ${SHAMAN_MIRROR} ]]; then echo "Ceph debian lib repo exists in shaman" REPO_FOUND=1 -- 2.47.3