Explorar el Código

Fix issues with certbot command when using LE_SERVER

Jamie Curnow hace 1 año
padre
commit
5bdc05878f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      backend/internal/certificate.js

+ 2 - 2
backend/internal/certificate.js

@@ -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);