Skip to content

Commit

Permalink
Try
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Nov 11, 2024
1 parent 90ee2fe commit 539176f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,19 @@ async function updateWildcardData() {
} catch (error) {

}
const domains = (process.env.SSL_WILDCARDS || '').split(',').map(x => x.split(':')[0]);
for (const [domain, d] of Object.entries(await virtualminExec.getDomainInfo(domains, true))) {
sslWildcardsMap[domain] = {
id: d['ID'] + '',
path: dirname(d['SSL key file'] + ''),
domain,
try {
const domains = (process.env.SSL_WILDCARDS || '').split(',').map(x => x.split(':')[0]);
for (const [domain, d] of Object.entries(await virtualminExec.getDomainInfo(domains, true))) {
sslWildcardsMap[domain] = {
id: d['ID'] + '',
path: dirname(d['SSL key file'] + ''),
domain,
}
}
writeTo(cachepath, JSON.stringify(sslWildcardsMap))
} catch (error) {
console.error("Cant get valid ssl domain", error)
}
writeTo(cachepath, JSON.stringify(sslWildcardsMap))
}

export const getLtsPhp = (/** @type {string} */ major) => {
Expand Down

0 comments on commit 539176f

Please sign in to comment.