From 529c8acf6c450795048bed8502e0d78bf6164042 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 26 Nov 2013 14:15:40 -0500 Subject: [PATCH] app.js: added --install alias for --setup --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 374c198bf9..395416adf6 100644 --- a/app.js +++ b/app.js @@ -55,7 +55,7 @@ winston.info(''); - if (!nconf.get('help') && !nconf.get('setup') && !nconf.get('upgrade') && fs.existsSync(__dirname + '/config.json')) { + if (!nconf.get('help') && !nconf.get('setup') && !nconf.get('install') && !nconf.get('upgrade') && fs.existsSync(__dirname + '/config.json')) { // Load server-side configs nconf.file({ file: __dirname + '/config.json' @@ -127,7 +127,7 @@ } }); }); - } else if (nconf.get('setup') || !fs.existsSync(__dirname + '/config.json')) { + } else if (nconf.get('setup') || nconf.get('install') || !fs.existsSync(__dirname + '/config.json')) { // New install, ask setup questions if (nconf.get('setup')) { winston.info('NodeBB Setup Triggered via Command Line');