Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/configs/releng/airootfs
diff options
context:
space:
mode:
authorHoward Hicks <deimosian@gmail.com>2021-10-15 17:23:41 +0000
committerDavid Runge <dvzrv@archlinux.org>2021-11-30 22:03:09 +0000
commit679bfc8c9f094bec5995117bd9139b3e83acbba9 (patch)
treefab8fdcbec9facd933e4816c500d3f5226c2488a /configs/releng/airootfs
parent2cbf5abe62b13e784f079656bc89202aabc24caf (diff)
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-xconfigs/releng/airootfs/root/.automated_script.sh2
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