mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
This commit is contained in:
@@ -55,7 +55,9 @@ function checkSetupFlag(next) {
|
||||
var envSetupKeys = ['database'],
|
||||
setupVal;
|
||||
try {
|
||||
if (nconf.get('setup')) {
|
||||
setupVal = JSON.parse(nconf.get('setup'));
|
||||
}
|
||||
} catch (err) {
|
||||
winston.error('Was unable to parse JSON, continuing with regular setup.', err);
|
||||
setupVal = undefined;
|
||||
@@ -482,7 +484,7 @@ function setCopyrightWidget(next) {
|
||||
}
|
||||
|
||||
install.setup = function (callback) {
|
||||
var upgrade = require('./upgrade');
|
||||
|
||||
|
||||
async.series([
|
||||
checkSetupFlag,
|
||||
@@ -497,6 +499,7 @@ install.setup = function (callback) {
|
||||
enableDefaultPlugins,
|
||||
setCopyrightWidget,
|
||||
function (next) {
|
||||
var upgrade = require('./upgrade');
|
||||
upgrade.check(function(uptodate) {
|
||||
if (!uptodate) { upgrade.upgrade(next); }
|
||||
else { next(); }
|
||||
|
||||
Reference in New Issue
Block a user