mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
Fixing but where app would not be deleted
This commit is contained in:
@@ -68,10 +68,11 @@ AppUtil.remove = function (appId) {
|
||||
var app = Apps.findOne(appId);
|
||||
if (app.docker) {
|
||||
Docker.removeContainer(app.docker.Id, function (err) {
|
||||
Apps.remove({_id: appId});
|
||||
var appPath = path.join(Util.KITE_PATH, app.name);
|
||||
Util.deleteFolder(appPath);
|
||||
});
|
||||
} else {
|
||||
Apps.remove({_id: appId});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user