mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-22 12:22:23 +01:00
fixing regression introduced where the client-side config was incorrectly generated (resolves #94)
This commit is contained in:
@@ -39,7 +39,17 @@ var async = require('async'),
|
||||
async.eachSeries(install.questions, function(question, next) {
|
||||
var question = question.split('|');
|
||||
install.ask(question[1], function(value) {
|
||||
if (value !== '') config[question[0]] = value;
|
||||
switch(question[0]) {
|
||||
case 'use_port':
|
||||
value = value.toLowerCase();
|
||||
if (['y', 'yes', ''].indexOf(value) === -1) config[question[0]] = false;
|
||||
break;
|
||||
|
||||
default:
|
||||
if (value !== '') config[question[0]] = value;
|
||||
break;
|
||||
}
|
||||
|
||||
next();
|
||||
});
|
||||
}, function() {
|
||||
|
||||
Reference in New Issue
Block a user