Skip to content

Commit 351bb78

Browse files
committed
Support user-supplied db port for startup check
1 parent 1b04bcb commit 351bb78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

root/etc/cont-init.d/50-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ fi
9999
echo "Waiting for DB to be available"
100100
END=$((SECONDS+30))
101101
while [[ ${SECONDS} -lt ${END} ]] && [[ -n "${DB_HOST+x}" ]]; do
102-
if [[ $(/usr/bin/nc -w1 "${DB_HOST}" 3306 | tr -d '\0') ]]; then
102+
if [[ $(/usr/bin/nc -w1 "${DB_HOST}" "${DB_PORT}" | tr -d '\0') ]]; then
103103
if [[ -n "${RUN}" ]]; then
104104
break
105105
fi

0 commit comments

Comments
 (0)