diff --git a/install/web.js b/install/web.js index 6898ee864d..55f7db2a3a 100644 --- a/install/web.js +++ b/install/web.js @@ -77,10 +77,14 @@ function setupRoutes() { function welcome(req, res) { var dbs = ['redis', 'mongo']; - var databases = dbs.map(function (el) { + var databases = dbs.map(function (databaseName) { + var questions = require('../src/database/' + databaseName).questions.filter(function (question) { + return question && !question.hideOnWebInstall; + }); + return { - name: el, - questions: require('../src/database/' + el).questions, + name: databaseName, + questions: questions, }; }); diff --git a/src/database/mongo.js b/src/database/mongo.js index 04addc07d5..5bcab76a6f 100644 --- a/src/database/mongo.js +++ b/src/database/mongo.js @@ -22,6 +22,7 @@ mongoModule.questions = [ name: 'mongo:uri', description: 'MongoDB connection URI: (leave blank if you wish to specify host, port, username/password and database individually)\nFormat: mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]', default: nconf.get('mongo:uri') || '', + hideOnWebInstall: true, }, { name: 'mongo:host',