diff options
| author | Simon Rettberg | 2026-04-23 12:03:31 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2026-04-23 12:03:31 +0200 |
| commit | e822dcbb8c496786f8f03bc67cc4caff2d1ce4a8 (patch) | |
| tree | 07a0e60d31301a20a527604833cfcb5c7dd958b5 | |
| parent | [config-tgz] Don't suppress error messages on download (diff) | |
| download | systemd-init-master.tar.gz systemd-init-master.tar.xz systemd-init-master.zip | |
| -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 |
