#!/bin/bash -e

echo "Checking if director is ready..."

timeout 5m bash -c '
  while ! curl --insecure --fail https://127.0.0.1:<%= p('director.port') %>/info; do
    sleep 1
  done
'

echo
echo "Director is ready."

#!/bin/bash -e

echo "Checking if director is ready..."

timeout 5m bash -c '
  while ! curl --insecure --fail https://localhost:<%= p('director.port') %>/info; do
    sleep 1
  done
'

echo
echo "Director is ready."

Switch director health check to localhost
Switch director health check to localhost


[#158266107](https://www.pivotaltracker.com/story/show/158266107)