]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
nfs-ganesha: fix build_deb shaman polling loop exit status 670/head
authorAli Maredia <amaredia@redhat.com>
Wed, 29 Mar 2017 20:42:18 +0000 (16:42 -0400)
committerAli Maredia <amaredia@redhat.com>
Wed, 29 Mar 2017 21:05:51 +0000 (17:05 -0400)
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 <amaredia@redhat.com>
nfs-ganesha/build/build_deb

index 0f6f1952259092d7e0480ee1b14c5c7f8f94e078..a707ba23d7c83e7033784cee42384765fd4d266d 100644 (file)
@@ -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