From fcf4b0eb2434b7e220cc1d5bb14464515e034bd6 Mon Sep 17 00:00:00 2001 From: Jakob Berlin Date: Wed, 17 Feb 2021 22:35:58 +0100 Subject: [PATCH] Add curl IPv6 timeout To ensure script continue in case of no IPv6 DNS resolution - otherwise keeps waiting forever --- scripts/setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/setup b/scripts/setup index d062b82..57fabb4 100755 --- a/scripts/setup +++ b/scripts/setup @@ -20,7 +20,7 @@ fi EXTERNAL_IPv4=$(curl -4 -s https://icanhazip.com) -EXTERNAL_IPv6=$(curl -6 -s https://icanhazip.com || true) +EXTERNAL_IPv6=$(curl -6 -s -m 10 https://icanhazip.com || true) greenlight="" while [[ ! $greenlight =~ ^(y|n)$ ]]; do @@ -139,4 +139,4 @@ echo "make sure to recreate the docker-compose.yml after each change" echo " $ ./scripts/generate-compose" echo "" echo "to start bigbluebutton run" -echo " $ docker-compose up -d" \ No newline at end of file +echo " $ docker-compose up -d"