Cleanups and removing the legacy wwclient program code

This commit is contained in:
Gregory Kurtzer
2020-11-11 15:10:48 -08:00
parent fff79227d8
commit 9644690dd5
9 changed files with 17 additions and 417 deletions

View File

@@ -78,18 +78,12 @@ func main() {
time.Sleep(1000 * time.Millisecond)
}
// defer resp.Body.Close()
if resp.StatusCode != 200 {
log.Printf("Not updating runtime system-overlay, got status code: %d\n", resp.StatusCode)
time.Sleep(60000 * time.Millisecond)
continue
}
log.Printf("Updating runtime system\n")
command := exec.Command("/bin/cpio", "-iu")
command.Stdin = resp.Body