Node.js based forum software built for the modern web
set isPrimary to true if its undefined
Barış Soner Uşaklıb2d7455f723c
diff --git a/src/prestart.js b/src/prestart.jsindex 29fea6ee6b..dcc64cf527 100644--- a/src/prestart.js+++ b/src/prestart.js@@ -42,6 +42,8 @@ function loadConfig(configFile) {nconf.set('isPrimary', 'true');nconf.set('isCluster', 'false');}+ var isPrimary = nconf.get('isPrimary');+ nconf.set('isPrimary', isPrimary === undefined ? 'true' : isPrimary);// Ensure themes_path is a full filepathnconf.set('themes_path', path.resolve(dirname, nconf.get('themes_path')));