1
0

fix: add timeout to wget

This commit is contained in:
dump_stack() 2023-05-17 05:12:32 +00:00
parent 6e92010dc0
commit f630fa6f49
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -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")