Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Commit

Permalink
Fixed bug where windows upgrade would fail if VM was stopped
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Morgan <[email protected]>
  • Loading branch information
jmorganca committed Oct 23, 2015
1 parent 7cca8f1 commit 9ff311e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/Toolbox.iss
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ begin
TrackEvent('VM Upgrade Started');
WizardForm.StatusLabel.Caption := 'Upgrading Docker Toolbox VM...'
ExecAsOriginalUser(ExpandConstant('{app}\docker-machine.exe'), 'stop default', '', SW_HIDE, ewWaitUntilTerminated, ResultCode)
if ResultCode = 0 then
if (ResultCode = 0) or (ResultCode = 1) then
begin
FileCopy(ExpandConstant('{userdocs}\..\.docker\machine\cache\boot2docker.iso'), ExpandConstant('{userdocs}\..\.docker\machine\machines\default\boot2docker.iso'), false)
TrackEvent('VM Upgrade Succeeded');
Expand Down

0 comments on commit 9ff311e

Please sign in to comment.