fix: add timeout to wget
This commit is contained in:
parent
6e92010dc0
commit
f630fa6f49
@ -332,7 +332,9 @@ func InstallCommands(km config.KernelMask, pkgname string) (cmds []string, err e
|
|||||||
// TODO use faketime on old releases?
|
// TODO use faketime on old releases?
|
||||||
pkg.Deb.URL = strings.Replace(pkg.Deb.URL, "https", "http", -1)
|
pkg.Deb.URL = strings.Replace(pkg.Deb.URL, "https", "http", -1)
|
||||||
|
|
||||||
cmds = append(cmds, "wget --no-check-certificate "+pkg.Deb.URL)
|
cmds = append(cmds, "wget "+
|
||||||
|
"--timeout=10 --waitretry=1 --tries=10 "+
|
||||||
|
"--no-check-certificate "+pkg.Deb.URL)
|
||||||
}
|
}
|
||||||
|
|
||||||
cmds = append(cmds, "dpkg -i ./*.deb")
|
cmds = append(cmds, "dpkg -i ./*.deb")
|
||||||
|
Loading…
Reference in New Issue
Block a user