From f4e4bb97b11024d51edcabebedd05bde1b6805de Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 24 Apr 2023 15:31:05 +0200 Subject: [PATCH] Give setup more time to fail on docker ipv4 vs ipv6 detection --- scripts/installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index dd965234f..97e8ba757 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -151,7 +151,7 @@ log "downloading new addon images" images=$(node -e "let i = require('${box_src_tmp_dir}/src/infra_version.js'); console.log(i.baseImages.map(function (x) { return x.tag; }).join(' '), Object.keys(i.images).map(function (x) { return i.images[x].tag; }).join(' '));") log "\tPulling docker images: ${images}" -if ! curl -s --fail --connect-timeout 2 --max-time 2 https://ipv4.api.cloudron.io/api/v1/helper/public_ip; then +if ! curl --fail --connect-timeout 10 --max-time 10 https://ipv4.api.cloudron.io/api/v1/helper/public_ip; then docker_registry=registry.ipv6.docker.com else docker_registry=registry-1.docker.io