web install init

v1.18.x
psychobunny 10 years ago
parent a72501f3b4
commit 2dc20e690f

@ -65,8 +65,10 @@ configExists = fs.existsSync(configFile);
if (!nconf.get('setup') && !nconf.get('install') && !nconf.get('upgrade') && !nconf.get('reset') && configExists) {
start();
} else if (nconf.get('setup') || nconf.get('install') || !configExists) {
} else if (nconf.get('setup') || nconf.get('install')) {
setup();
} else if (!configExists) {
require('./install/web').install();
} else if (nconf.get('upgrade')) {
upgrade();
} else if (nconf.get('reset')) {
@ -219,11 +221,7 @@ function start() {
function setup() {
loadConfig();
if (nconf.get('setup')) {
winston.info('NodeBB Setup Triggered via Command Line');
} else {
winston.warn('Configuration not found, starting NodeBB setup');
}
var install = require('./src/install');

@ -0,0 +1,11 @@
"use strict";
var web = {};
web.install = function() {
};
module.exports = web;
Loading…
Cancel
Save