From: Ali Maredia Date: Wed, 29 Mar 2017 20:42:18 +0000 (-0400) Subject: nfs-ganesha: fix build_deb shaman polling loop exit status X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F670%2Fhead;p=ceph-build.git 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 --- 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