Skip to content

Commit

Permalink
Runner sub
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Oct 14, 2024
1 parent 4a8324f commit 1a692ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/executor/runnersub.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,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 domain'] == subdomain && subdomaindata['Lets Encrypt renewal'] == 'Enabled' && (remaining > 30)) {
if (!regenerateSsl && subdomaindata['SSL candidate hostnames'] == 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 {
Expand Down

0 comments on commit 1a692ad

Please sign in to comment.