feat: use snapshots only in case of failed fetch from repos
This commit is contained in:
parent
18426775b9
commit
e7614ef3a7
@ -210,7 +210,7 @@ func ContainerCommands(km config.KernelMask) (commands []string) {
|
|||||||
cmdf("echo '%s' >> /etc/apt/sources.list", repo)
|
cmdf("echo '%s' >> /etc/apt/sources.list", repo)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cmdf("sed -i " +
|
cmdf("apt-get update || sed -i " +
|
||||||
"-e '/snapshot/!d' " +
|
"-e '/snapshot/!d' " +
|
||||||
"-e 's/# deb/deb [check-valid-until=no trusted=yes]/' " +
|
"-e 's/# deb/deb [check-valid-until=no trusted=yes]/' " +
|
||||||
"/etc/apt/sources.list")
|
"/etc/apt/sources.list")
|
||||||
|
Loading…
Reference in New Issue
Block a user