diff options
| -rwxr-xr-x | modules.d/conf-tgz/hooks/s3-fetch-config-tgz.sh | 2 | ||||
| -rwxr-xr-x | modules.d/conf-tgz/hooks/s3-fetch-config.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules.d/conf-tgz/hooks/s3-fetch-config-tgz.sh b/modules.d/conf-tgz/hooks/s3-fetch-config-tgz.sh index 21b31f6a..c9a2e0cc 100755 --- a/modules.d/conf-tgz/hooks/s3-fetch-config-tgz.sh +++ b/modules.d/conf-tgz/hooks/s3-fetch-config-tgz.sh @@ -17,7 +17,7 @@ if [ -s "/run/system-uuid" ]; then fi fi echo "Download config.tgz from '$conftgz_url'..." -slx-tools download_retry --slx-time 20 -o "/etc/config.tgz" "${conftgz_url}" +slx-tools download_retry --slx-time 25 --fail --speed-limit 300 --speed-time 5 -o "/etc/config.tgz" "${conftgz_url}" if ! [ -s "/etc/config.tgz" ]; then echo "Failed to download '${conftgz_url}'" diff --git a/modules.d/conf-tgz/hooks/s3-fetch-config.sh b/modules.d/conf-tgz/hooks/s3-fetch-config.sh index c5d5e1e4..482f7f04 100755 --- a/modules.d/conf-tgz/hooks/s3-fetch-config.sh +++ b/modules.d/conf-tgz/hooks/s3-fetch-config.sh @@ -35,7 +35,7 @@ fi config_path="/etc/openslx.tmp" echo "Downloading '$config_url'..." -slx-tools download_retry --slx-time 20 -o "$config_path" "$config_url" +slx-tools download_retry --slx-time 20 --fail --speed-limit 300 --speed-time 5 -o "$config_path" "$config_url" return_code="$?" sed -r 's/^([0-9]+)\.([0-9][0-9]).*$/\1\2/' /proc/uptime > /tmp/config-download-time |
