Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Sep 9, 2024
1 parent d9f5c4f commit 48126ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/executor/runnersub.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
await sshExec(`mkdir -p ~/.local/bin; echo -e "\\u23\\u21/bin/bash\\n$(which php${phpVer}) \\u22\\u24\\u40\\u22" > ~/.local/bin/php; chmod +x ~/.local/bin/php`, false);
break;
case 'http':
var nginxNodes = await nginxExec.get(subdomain);
var nginxInfos = nginxExec.extractInfo(nginxNodes, subdomain);
value = parseInt(value);
if (![1, 2].includes(value)) {
Expand All @@ -234,8 +235,8 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
selfSignSsl = true;
}
var sharedSSL = regenerateSsl ? null : detectCanShareSSL(subdomain);
var nginxNodes = await nginxExec.get(subdomain);
var nginxInfos = nginxExec.extractInfo(nginxNodes, subdomain);
nginxNodes = await nginxExec.get(subdomain);
nginxInfos = nginxExec.extractInfo(nginxNodes, subdomain);
var expectCert = sharedSSL ? path.join(sharedSSL, 'ssl.combined') : (subdomaindata['SSL cert and CA file'] || subdomaindata['SSL cert file']);
var expectKey = sharedSSL ? path.join(sharedSSL, 'ssl.key') : subdomaindata['SSL key file'];
// if (force regenerate or no explicit command or ssl not match) AND it's shared, then must break.
Expand Down

0 comments on commit 48126ae

Please sign in to comment.