diff options
| author | David Runge <dvzrv@archlinux.org> | 2021-03-29 19:24:01 +0200 |
|---|---|---|
| committer | David Runge <dvzrv@archlinux.org> | 2021-03-29 19:26:27 +0200 |
| commit | 0664efcf3c3317d4876685b3a2618ad7f3e290b0 (patch) | |
| tree | a85f2e4246fb3ef6d83d1bc4fa4bcd32ba8c3573 /configs/releng/airootfs | |
| parent | d86f8606dcef3a85964fc4656dcdd0e22b87c800 (diff) | |
| download | archiso-0664efcf3c3317d4876685b3a2618ad7f3e290b0.tar.gz archiso-0664efcf3c3317d4876685b3a2618ad7f3e290b0.tar.bz2 | |
Allow redirects for scripts
configs/releng/airootfs/root/.automated_script.sh:
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
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 ed3a924..5c0c316 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}" --retry-connrefused -s -o /tmp/startup_script >/dev/null + curl "${script}" --location --retry-connrefused -s -o /tmp/startup_script >/dev/null rt=$? else cp "${script}" /tmp/startup_script |
