diff --git a/src/executor/runnersub.js b/src/executor/runnersub.js index 6812c8c..2a2119a 100644 --- a/src/executor/runnersub.js +++ b/src/executor/runnersub.js @@ -281,7 +281,7 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec, if (regenerateSsl || (!expectedSslMode && !sharedSSL && !selfSignSsl)) { const remaining = subdomaindata['SSL cert expiry'] ? (Date.parse(subdomaindata['SSL cert expiry']) - Date.now()) / 86400000 : 0; // if force LE or remaining > 30 days, get fresh one - if (!regenerateSsl && subdomaindata['Lets Encrypt renewal'] == 'Enabled' && (remaining > 30)) { + if (!regenerateSsl && subdomaindata['Lets Encrypt domain'] == subdomain && subdomaindata['Lets Encrypt renewal'] == 'Enabled' && (remaining > 30)) { await writeLog("$> SSL cert expiry is " + Math.trunc(remaining) + " days away so skipping renewal"); await writeLog("$> To enforce renewal please use 'ssl renew'"); } else {