From 79c59882a63f615126308ad54a52db06189c92cd Mon Sep 17 00:00:00 2001 From: Wildan M Date: Fri, 20 Sep 2024 06:48:52 +0700 Subject: [PATCH] Fix --- 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 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 {