Node.js based forum software built for the modern web
Fix the issue that the default values are saved to config.json
Pongsan Sayampol24907e456d18
diff --git a/src/install.js b/src/install.jsindex b5c4d4b089..ef5aa47e28 100644--- a/src/install.js+++ b/src/install.js@@ -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';