Stopped apps should not renew certificates

We had a case where a stopped/ununsed app was generating cert renewal
errors.

One idea might be to suppress the notification as well.
This commit is contained in:
Girish Ramakrishnan
2020-01-26 16:05:23 -08:00
parent cda649884e
commit db330b23cb
3 changed files with 7 additions and 0 deletions

View File

@@ -582,6 +582,8 @@ function renewCerts(options, auditSource, progressCallback, callback) {
// add app main
allApps.forEach(function (app) {
if (app.runState === apps.RSTATE_STOPPED) return; // do not renew certs of stopped apps
appDomains.push({ domain: app.domain, fqdn: app.fqdn, type: 'main', app: app, nginxConfigFilename: path.join(paths.NGINX_APPCONFIG_DIR, app.id + '.conf') });
app.alternateDomains.forEach(function (alternateDomain) {