delete old nginx configs on infra update

we changed the cert location and reloading nginx fails...
This commit is contained in:
Girish Ramakrishnan
2017-01-28 01:39:11 -08:00
parent 74e2415308
commit 2fac7dd736
2 changed files with 10 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ var apps = require('./apps.js'),
fs = require('fs'),
hat = require('hat'),
infra = require('./infra_version.js'),
nginx = require('./nginx.js'),
os = require('os'),
paths = require('./paths.js'),
safe = require('safetydance'),
@@ -323,6 +324,7 @@ function startApps(existingInfra, callback) {
apps.restoreInstalledApps(callback);
} else {
debug('startApps: reconfiguring installed apps');
nginx.removeAppConfigs(); // should we change the cert location, nginx will not start
apps.configureInstalledApps(callback);
}
}