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

Commit

Permalink
Fix bug where upgrade would fail if VM is 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 30, 2015
1 parent 1f04b1e commit 8c128e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osx/installerplugins/managevmplugin/managevmpluginPane.m
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ - (void) upgradeBoot2DockerVM {
// Do the migration
NSTask* task = [[NSTask alloc] init];
task.launchPath = @"/usr/bin/sudo";
task.arguments = [NSArray arrayWithObjects:@"-i", @"-u", NSUserName(), [NSString stringWithFormat:@"%@ -D stop default && cp %@/.docker/machine/cache/boot2docker.iso %@/.docker/machine/machines/default/boot2docker.iso", dockerMachinePath, NSHomeDirectory(), NSHomeDirectory()], nil];
task.arguments = [NSArray arrayWithObjects:@"-i", @"-u", NSUserName(), [NSString stringWithFormat:@"%@ -D stop default || true && cp %@/.docker/machine/cache/boot2docker.iso %@/.docker/machine/machines/default/boot2docker.iso", dockerMachinePath, NSHomeDirectory(), NSHomeDirectory()], nil];

[self runTask:task onFinish:^void (int status) {
self.nextEnabled = YES;
Expand Down
Binary file not shown.

0 comments on commit 8c128e7

Please sign in to comment.