Skip to content

Commit 5bdc058

Browse files
committed
Fix issues with certbot command when using LE_SERVER
1 parent 929ac3b commit 5bdc058

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/internal/certificate.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,8 @@ const internalCertificate = {
839839
'--email "' + certificate.meta.letsencrypt_email + '" ' +
840840
'--preferred-challenges "dns,http" ' +
841841
'--domains "' + certificate.domain_names.join(',') + '" ' +
842-
(letsencryptStaging ? '--staging' : '') +
843-
(letsencryptServer !== null ? `--server '${letsencryptServer}'` : '');
842+
(letsencryptServer !== null ? `--server '${letsencryptServer}' ` : '') +
843+
(letsencryptStaging && letsencryptServer === null ? '--staging ' : '');
844844

845845
logger.info('Command:', cmd);
846846

0 commit comments

Comments
 (0)