Fix issues with certbot command when using LE_SERVER

This commit is contained in:
Jamie Curnow 2024-10-16 11:22:24 +10:00
parent 929ac3bd7c
commit 5bdc05878f
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E

View File

@ -839,8 +839,8 @@ const internalCertificate = {
'--email "' + certificate.meta.letsencrypt_email + '" ' +
'--preferred-challenges "dns,http" ' +
'--domains "' + certificate.domain_names.join(',') + '" ' +
(letsencryptStaging ? '--staging' : '') +
(letsencryptServer !== null ? `--server '${letsencryptServer}'` : '');
(letsencryptServer !== null ? `--server '${letsencryptServer}' ` : '') +
(letsencryptStaging && letsencryptServer === null ? '--staging ' : '');
logger.info('Command:', cmd);