mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-12 19:41:27 +00:00
download: Set a 30s timeout for wget request
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
198a3f10d2
commit
e6ee584a15
@ -70,8 +70,8 @@ cleanup() {
|
||||
}
|
||||
|
||||
download_file() {
|
||||
if ! wget -q https://${DOWNLOAD_SERVER}/$1 -O $2 >/dev/null 2>&1; then
|
||||
if ! wget -q http://${DOWNLOAD_SERVER}/$1 -O $2 >/dev/null 2>&1; then
|
||||
if ! wget -T 30 -q https://${DOWNLOAD_SERVER}/$1 -O $2 >/dev/null 2>&1; then
|
||||
if ! wget -T 30 -q http://${DOWNLOAD_SERVER}/$1 -O $2 >/dev/null 2>&1; then
|
||||
if [ "$3" = "noexit" ]; then
|
||||
return 1
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user