From a97af08bb8ede5f71ed6615f673c3dbf981e4c63 Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 9 Mar 2023 18:25:05 +0100 Subject: [PATCH] talk - wait for nextcloud-aio-apache to be started Signed-off-by: Simon L --- Containers/talk/start.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Containers/talk/start.sh b/Containers/talk/start.sh index d18c1d13..246c72af 100644 --- a/Containers/talk/start.sh +++ b/Containers/talk/start.sh @@ -12,6 +12,11 @@ elif [ -z "$SIGNALING_SECRET" ]; then exit 1 fi +while [ -z "$(dig nextcloud-aio-apache A +short)" ]; do + echo "Waiting for nextcloud-aio-apache to be started" + sleep 5 +done + set -x IPv4_ADDRESS_TALK="$(dig nextcloud-aio-talk A +short)" IPv4_ADDRESS_APACHE="$(dig nextcloud-aio-apache A +short)"