Cleanups and removing the legacy wwclient program code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user