This commit is contained in:
Barış Soner Uşaklı
2018-01-15 15:05:33 -05:00
parent 13850e3586
commit e092778ba6
3 changed files with 30 additions and 19 deletions

View File

@@ -157,16 +157,17 @@ function completeConfigSetup(config, next) {
}
}
nconf.overrides(config);
async.waterfall([
function (next) {
install.save(config, next);
},
function (next) {
require('./database').init(next);
},
function (next) {
require('./database').createIndices(next);
},
function (next) {
install.save(config, next);
},
], next);
}
@@ -523,7 +524,7 @@ install.setup = function (callback) {
], function (err, results) {
if (err) {
winston.warn('NodeBB Setup Aborted.\n ' + err.stack);
process.exit();
process.exit(1);
} else {
var data = {};
if (results[6]) {