Skip to content

Commit

Permalink
Fix issues with certbot command when using LE_SERVER
Browse files Browse the repository at this point in the history
  • Loading branch information
jc21 committed Oct 16, 2024
1 parent 929ac3b commit 5bdc058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/internal/certificate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5bdc058

Please sign in to comment.