1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

Fixing minor installer bugs

This commit is contained in:
Jeff Morgan
2014-12-02 16:23:47 -05:00
parent baf9845bb1
commit b1e8a8a4d0
2 changed files with 4 additions and 5 deletions

View File

@@ -93,8 +93,7 @@ Setup.steps = [
callback('Boot2Docker SSH key doesn\'t exist. Fix by removing the existing Boot2Docker VM and re-run the installer. This usually occurs because an old version of Boot2Docker is installed.');
} else {
Boot2Docker.vmUpToDate(function (err, upToDate) {
if (err) {callback(err); return;}
if (!upToDate) {
if (err || !upToDate) {
Boot2Docker.stop(function(err) {
Boot2Docker.upgrade(function (err) {
callback(err);
@@ -104,7 +103,7 @@ Setup.steps = [
callback();
}
});
}
}
}
});
},

View File

@@ -16,7 +16,7 @@ VirtualBox.installed = function () {
};
VirtualBox.exec = function (command, callback) {
exec(['/usr/bin/VBoxManage', command], function (stderr, stdout, code) {
exec('/usr/bin/VBoxManage ' + command, function (stderr, stdout, code) {
callback(stderr, stdout, code);
});
};
@@ -115,4 +115,4 @@ VirtualBox.shutdownVM = function (name, callback) {
});
});
});
};
};