From 1a692adf8607b44ef2bb896d23d0df358b85b15d Mon Sep 17 00:00:00 2001 From: Wildan M Date: Mon, 14 Oct 2024 08:45:10 +0700 Subject: [PATCH] Runner sub --- src/executor/runnersub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/executor/runnersub.js b/src/executor/runnersub.js index f054896..1fcdca6 100644 --- a/src/executor/runnersub.js +++ b/src/executor/runnersub.js @@ -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 {