We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9de3d96 commit 0c38f97Copy full SHA for 0c38f97
root/etc/cont-init.d/50-config
@@ -57,9 +57,11 @@ fi
57
58
# check for the mysql endpoint for 30 seconds
59
END=$((SECONDS+30))
60
-while [ ${SECONDS} -lt ${END} ]; do
+while [ ${SECONDS} -lt ${END} ] && [ "${DB_HOST}" ];
61
+ do
62
/usr/bin/nc -z ${DB_HOST} 3306 && \
- if [ ! -z "$(/usr/bin/nc -w1 ${DB_HOST} 3306)" ]; then
63
+ if [ ! -z "$(/usr/bin/nc -w1 ${DB_HOST} 3306)" ];
64
+ then
65
[ ! -z "${RUN}" ] && break
66
RUN="RAN"
67
# we sleep here again due to first run init on DB containers
0 commit comments