1
0
mirror of https://github.com/rancher/os.git synced 2025-09-11 11:41:35 +00:00

Only run upgrade container once

This commit is contained in:
Josh Curl
2016-02-26 12:04:32 -08:00
parent c7cbb1660a
commit 6f94672044
2 changed files with 12 additions and 7 deletions

View File

@@ -201,7 +201,7 @@ func startUpgradeContainer(image string, stage, force, reboot bool) error {
}
}
if err := container.Start(); err != nil {
if err := container.Up(); err != nil {
return err
}
@@ -209,10 +209,6 @@ func startUpgradeContainer(image string, stage, force, reboot bool) error {
return err
}
if err := container.Up(); err != nil {
return err
}
if err := container.Delete(); err != nil {
return err
}