diff options
| author | Howard Hicks <deimosian@gmail.com> | 2021-10-15 17:23:41 +0000 |
|---|---|---|
| committer | David Runge <dvzrv@archlinux.org> | 2021-11-30 22:03:09 +0000 |
| commit | 679bfc8c9f094bec5995117bd9139b3e83acbba9 (patch) | |
| tree | fab8fdcbec9facd933e4816c500d3f5226c2488a /configs/releng/airootfs | |
| parent | 2cbf5abe62b13e784f079656bc89202aabc24caf (diff) | |
| download | archiso-679bfc8c9f094bec5995117bd9139b3e83acbba9.tar.gz archiso-679bfc8c9f094bec5995117bd9139b3e83acbba9.tar.bz2 | |
Fixes failure to retry script download. Tested and verified the issue is resolved.
The curl --retry-connrefused option is used with not instead of the --retry <num> option to add an extra type of failure to retry on, without --retry <num> it does not retry at all even on a connection refused.
https://man.archlinux.org/man/curl.1.en
Diffstat (limited to 'configs/releng/airootfs')
| -rwxr-xr-x | configs/releng/airootfs/root/.automated_script.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configs/releng/airootfs/root/.automated_script.sh b/configs/releng/airootfs/root/.automated_script.sh index 5c0c316..52c47e6 100755 --- a/configs/releng/airootfs/root/.automated_script.sh +++ b/configs/releng/airootfs/root/.automated_script.sh @@ -16,7 +16,7 @@ automated_script () script="$(script_cmdline)" if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then if [[ "${script}" =~ ^((http|https|ftp)://) ]]; then - curl "${script}" --location --retry-connrefused -s -o /tmp/startup_script >/dev/null + curl "${script}" --location --retry-connrefused --retry 10 -s -o /tmp/startup_script >/dev/null rt=$? else cp "${script}" /tmp/startup_script |
