From 1bd927a0a3a012e3370430d78f78b06a0adc596d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 23 May 2022 12:18:06 +0200 Subject: config(.tgz): Increase retry timeout to 20 seconds, use --slx-time --- modules.d/conf-tgz/hooks/fetch-config-tgz.sh | 2 +- modules.d/dnbd3-rootfs/hooks/fetch-config.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules.d/conf-tgz/hooks/fetch-config-tgz.sh b/modules.d/conf-tgz/hooks/fetch-config-tgz.sh index 26e705b2..5fa96de7 100755 --- a/modules.d/conf-tgz/hooks/fetch-config-tgz.sh +++ b/modules.d/conf-tgz/hooks/fetch-config-tgz.sh @@ -18,7 +18,7 @@ if [ -z "$SLX_NO_CONFIG_TGZ" ]; then fi fi info "Download config.tgz from '$conftgz_url'..." - slx-tools download_retry -s "${conftgz_url}" > "/etc/config.tgz" + slx-tools download_retry --slx-time 20 -sS "${conftgz_url}" > "/etc/config.tgz" if [[ ! -s "/etc/config.tgz" ]]; then warn "Failed to download '${conftgz_url}'!" diff --git a/modules.d/dnbd3-rootfs/hooks/fetch-config.sh b/modules.d/dnbd3-rootfs/hooks/fetch-config.sh index a282fa28..021a4c06 100755 --- a/modules.d/dnbd3-rootfs/hooks/fetch-config.sh +++ b/modules.d/dnbd3-rootfs/hooks/fetch-config.sh @@ -35,7 +35,7 @@ fi config_path="/etc/openslx.tmp" echo "Downloading '$config_url'..." -slx-tools download_retry -s "$config_url" > "$config_path" +slx-tools download_retry --slx-time 20 -sS "$config_url" > "$config_path" return_code="$?" if [ ! -s "$config_path" ] ; then -- cgit v1.2.3-55-g7522