From 65c9c2468e8290be57daed7410bc68fb34d08281 Mon Sep 17 00:00:00 2001 From: Emilie Date: Tue, 10 Apr 2018 15:52:00 +0200 Subject: [PATCH] [wait.sh] : auto detect db port --- misc/wait.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/wait.sh b/misc/wait.sh index 26a309f..af588e9 100755 --- a/misc/wait.sh +++ b/misc/wait.sh @@ -5,8 +5,8 @@ set -e apt update apt install -y netcat -HOST=db -PORT=5432 +HOST=$(env | grep _TCP_ADDR | cut -d = -f 2) +PORT=$(env | grep _TCP_PORT | cut -d = -f 2) echo -n "waiting for TCP connection to $HOST:$PORT..." -- 2.39.5