Always generate webadmin config on startup

This commit is contained in:
Girish Ramakrishnan
2018-11-11 08:19:24 -08:00
parent a3cc17705d
commit b640a053e3
2 changed files with 4 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ var assert = require('assert'),
reverseProxy = require('./reverseproxy.js'),
safe = require('safetydance'),
settings = require('./settings.js'),
setup = require('./setup.js'),
shell = require('./shell.js'),
spawn = require('child_process').spawn,
split = require('split'),
@@ -102,6 +103,9 @@ function runStartupTasks() {
// configure nginx to be reachable by IP
reverseProxy.configureDefaultServer(NOOP_CALLBACK);
// always generate webadmin config since we have no versioning mechanism for the ejs
setup.configureWebadmin(NOOP_CALLBACK);
// check activation state and start the platform
users.isActivated(function (error, activated) {
if (error) return debug(error);