Verified Commit 0664efcf authored by David Runge's avatar David Runge 🐿
Browse files

Allow redirects for scripts

Add the `--location` curl parameter (see `man 1 curl`) to allow for curl to retrieve a remote script even if the source
is being redirected (e.g. moved permanently) when using the `script=` kernel commandline parameter.

Fixes #113
parent d86f8606
......@@ -16,7 +16,7 @@ automated_script ()
if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then
if [[ "${script}" =~ ^((http|https|ftp)://) ]]; then
curl "${script}" --retry-connrefused -s -o /tmp/startup_script >/dev/null
curl "${script}" --location --retry-connrefused -s -o /tmp/startup_script >/dev/null
cp "${script}" /tmp/startup_script
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment