Skip to content

Commit

Permalink
Fix wait_for_template functionality
Browse files Browse the repository at this point in the history
This fixes logsearch#248.

Signed-off-by: Nikolay Maslarski <[email protected]>
  • Loading branch information
ivan-sap authored and Nikolay Maslarski committed Sep 13, 2016
1 parent ee8467b commit 2ee8330
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jobs/parser/templates/bin/parser_ctl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ function wait_for_template {
while true; do
echo "Waiting for index template to be uploaded: $template_name"
curl -X HEAD -f -i "$MASTER_URL"/_template/$template_name > /dev/null 2>&1
[ $? ] && break
if [ $? -eq 0 ]; then
break
fi
sleep 5
done
set -e
Expand Down

0 comments on commit 2ee8330

Please sign in to comment.