mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
closes #3098
wait for templates to compile even if using clustering fix emitter.all upgrade.check error first removed plugins.ready, using callback on plugins.init removed webserver.init, using webserver.listen
This commit is contained in:
@@ -499,7 +499,10 @@ install.setup = function (callback) {
|
||||
setCopyrightWidget,
|
||||
function (next) {
|
||||
var upgrade = require('./upgrade');
|
||||
upgrade.check(function(uptodate) {
|
||||
upgrade.check(function(err, uptodate) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
if (!uptodate) { upgrade.upgrade(next); }
|
||||
else { next(); }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user