Add a debug

This commit is contained in:
Girish Ramakrishnan
2018-10-24 20:06:43 -07:00
parent e7120bd086
commit c1db52927e
2 changed files with 4 additions and 0 deletions

View File

@@ -454,6 +454,8 @@ function renewCerts(options, auditSource, callback) {
let currentNginxConfig = safe.fs.readFileSync(appDomain.nginxConfigFilename, 'utf8') || '';
if (currentNginxConfig.includes(bundle.certFilePath)) return iteratorCallback();
debug(`renewCerts: creating new nginx config since ${appDomain.nginxConfigFilename} does not have ${bundle.certFilePath}`);
// reconfigure since the cert changed
var configureFunc;
if (appDomain.type === 'webadmin') configureFunc = writeAdminConfig.bind(null, bundle, constants.NGINX_ADMIN_CONFIG_FILE_NAME, config.adminFqdn());