Fix the issue that the default values are saved to config.json

v1.18.x
Pongsan Sayampol 11 years ago
parent 2039885d96
commit 24907e456d

@ -134,6 +134,11 @@ var async = require('async'),
return next(new Error('unknown database : ' + config.database));
}
var allQuestions = install.redisQuestions.concat(install.mongoQuestions);
for(var x=0;x<allQuestions.length;x++) {
delete config[allQuestions[x].name];
}
config.bcrypt_rounds = 12;
config.upload_path = '/public/uploads';
config.use_port = config.use_port.slice(0, 1) === 'y';

Loading…
Cancel
Save