Skip to content

Commit

Permalink
Fix sharing update
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Nov 14, 2024
1 parent be4e07a commit 0465721
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/executor/runnersub.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
if ((!expectCert || !expectKey) && !regenerateSsl) {
expectedSslMode = 'off';
}
// if (force regenerate or no explicit command or ssl not match) AND it's shared, then must break.
// if (force regenerate or no explicit command or ssl not match) AND it's shared ssl differ, then must break.
if (regenerateSsl || (!expectedSslMode && !sharedSSL && !selfSignSsl) || (expectCert != nginxInfos.ssl_certificate)) {
if (subdomaindata['SSL shared with'] && expectedSslMode != 'off') {
await writeLog("$> Breaking ssl cert sharing with the global domain");
if (subdomaindata['SSL shared with'] && (!sharedSSL || subdomaindata['SSL shared with'] != sharedSSL.domain)) {
await writeLog("$> Breaking ssl cert sharing");
await virtExec("modify-web", {
domain: subdomain,
'break-ssl-cert': true,
Expand Down

0 comments on commit 0465721

Please sign in to comment.