- #!/bin/bash
- containerstart=`stat -c %Z /proc/1`
- curtime=`date +%s`
- if (( curtime-containerstart < 180 )); then
- # while ! ping -c 1 ${DB_CLUSTER}; do echo "Waiting for ${DB_CLUSTER} to be available"; sleep 1; done
- echo "0"
- exit 0
- fi
- curl -f 127.0.0.1:8091/login || exit 1
|