- #!/usr/bin/env bash
- if [ ! -z "${APPNET}" ]; then
- echo "Initial nslookup ${HOSTNAME}.${APPNET}"
- nslookup ${HOSTNAME}.${APPNET}
- while [ $? -ne 0 ]; do
- echo "Waiting for ${HOSTNAME}.${APPNET} to become available"
- sleep 1
- nslookup ${HOSTNAME}.${APPNET}
- done
- fi
- exec "$@"
|