From 5487da9030cd8d4ae50d59087b5f1237c4abcf8e Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 24 Apr 2015 14:50:31 -0400 Subject: [PATCH] updated web installer to auto-select the database if passed in via env var --- install/web.js | 4 ++++ src/views/install/index.tpl | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/install/web.js b/install/web.js index 35343d91af..af56943b52 100644 --- a/install/web.js +++ b/install/web.js @@ -65,6 +65,10 @@ function welcome(req, res) { res.render('install/index', { databases: databases, + dbBool: { + redis: nconf.get('database') === 'redis', + mongo: nconf.get('database') === 'mongo' + }, error: res.locals.error ? true : false, success: res.locals.success ? true : false, values: req.body diff --git a/src/views/install/index.tpl b/src/views/install/index.tpl index 06bf4cbd52..d3f6df8b3c 100644 --- a/src/views/install/index.tpl +++ b/src/views/install/index.tpl @@ -99,8 +99,8 @@
There was an error connecting to your database. Please try again.