Merge remote-tracking branch 'deimosian/deimosian-master-patch-67154'

* deimosian/deimosian-master-patch-67154:
  Fixes failure to retry script download. Tested and verified the issue is resolved.
This commit is contained in:
David Runge 2021-11-30 23:05:58 +01:00
commit 547678627d
No known key found for this signature in database
GPG Key ID: 7258734B41C31549

View File

@ -16,7 +16,7 @@ automated_script ()
script="$(script_cmdline)" script="$(script_cmdline)"
if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then
if [[ "${script}" =~ ^((http|https|ftp)://) ]]; 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=$? rt=$?
else else
cp "${script}" /tmp/startup_script cp "${script}" /tmp/startup_script