mirror of https://github.com/docker/docs.git
Merge pull request #121 from kitematic/jmorgan_installer_tweaks
Fixing minor installer bugs
This commit is contained in:
commit
d13a53791c
|
@ -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.');
|
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 {
|
} else {
|
||||||
Boot2Docker.vmUpToDate(function (err, upToDate) {
|
Boot2Docker.vmUpToDate(function (err, upToDate) {
|
||||||
if (err) {callback(err); return;}
|
if (err || !upToDate) {
|
||||||
if (!upToDate) {
|
|
||||||
Boot2Docker.stop(function(err) {
|
Boot2Docker.stop(function(err) {
|
||||||
Boot2Docker.upgrade(function (err) {
|
Boot2Docker.upgrade(function (err) {
|
||||||
callback(err);
|
callback(err);
|
||||||
|
@ -104,7 +103,7 @@ Setup.steps = [
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -16,7 +16,7 @@ VirtualBox.installed = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
VirtualBox.exec = function (command, callback) {
|
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);
|
callback(stderr, stdout, code);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -115,4 +115,4 @@ VirtualBox.shutdownVM = function (name, callback) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue