Fix curl
This commit is contained in:
parent
3215bd543f
commit
a7c16737ec
3
jlmkr.sh
3
jlmkr.sh
|
@ -249,8 +249,7 @@ create_jail() {
|
|||
|
||||
# Fetch the lxc download script if not present locally (or hash doesn't match)
|
||||
if ! validate_download_script "${lxc_download_script_path}"; then
|
||||
curl -fSL
|
||||
https://raw.githubusercontent.com/Jip-Hop/lxc/58520263041b6864cadad96278848f9b8ce78ee9/templates/lxc-download.in -o "${lxc_download_script_path}"
|
||||
curl -fSL https://raw.githubusercontent.com/Jip-Hop/lxc/58520263041b6864cadad96278848f9b8ce78ee9/templates/lxc-download.in -o "${lxc_download_script_path}"
|
||||
# Validate after download to prevent executing arbitrary code as root
|
||||
validate_download_script "${lxc_download_script_path}" || fail 'Abort! Downloaded script has unexpected contents.'
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue