diff --git a/src/prestart.js b/src/prestart.js index 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 filepath nconf.set('themes_path', path.resolve(dirname, nconf.get('themes_path')));