From 679bfc8c9f094bec5995117bd9139b3e83acbba9 Mon Sep 17 00:00:00 2001 From: Howard Hicks Date: Fri, 15 Oct 2021 17:23:41 +0000 Subject: 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 option to add an extra type of failure to retry on, without --retry it does not retry at all even on a connection refused. https://man.archlinux.org/man/curl.1.en --- configs/releng/airootfs/root/.automated_script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configs') 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 -- cgit v1.2.3-70-g09d2