From 93e3a58982c0dc30e647a81daed7e5a961c2102c Mon Sep 17 00:00:00 2001
From: Mitesh Shah <Mitesh.Shah@rtCamp.com>
Date: Mon, 11 Aug 2014 16:30:26 +0530
Subject: [PATCH] Better way to retry curl

---
 config/cloud/cloud66/scripts/curl.sh | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/config/cloud/cloud66/scripts/curl.sh b/config/cloud/cloud66/scripts/curl.sh
index 3f84f89b6..d4293d612 100644
--- a/config/cloud/cloud66/scripts/curl.sh
+++ b/config/cloud/cloud66/scripts/curl.sh
@@ -5,10 +5,6 @@ if [ -f $FILE ]
 then
 	echo "File $FILE exists..."
 else
-	curl localhost
-    curl localhost
-    curl localhost
-    curl localhost
-    curl localhost
+	curl --retry 5 localhost
     touch /tmp/curl_done
-fi
\ No newline at end of file
+fi