Skip to content
Permalink
Browse files
Merge pull request #1469 from jc21/certbot-plugin-updates
Certbot plugin updates
  • Loading branch information
jc21 committed Oct 11, 2021
2 parents 9e169fb + 8865aa9 commit 8d98a417c5272161efc2ec0c9547fa7f147ae933
Showing with 209 additions and 209 deletions.
  1. +1 −1 backend/internal/certificate.js
  2. +1 −1 backend/setup.js
  3. +207 −207 global/certbot-dns-plugins.js
@@ -869,7 +869,7 @@ const internalCertificate = {

const credentialsLocation = '/etc/letsencrypt/credentials/credentials-' + certificate.id;
const credentialsCmd = 'mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo \'' + certificate.meta.dns_provider_credentials.replace('\'', '\\\'') + '\' > \'' + credentialsLocation + '\' && chmod 600 \'' + credentialsLocation + '\'';
const prepareCmd = 'pip install ' + dns_plugin.package_name + '==' + dns_plugin.package_version + ' ' + dns_plugin.dependencies;
const prepareCmd = 'pip install ' + dns_plugin.package_name + (dns_plugin.version_requirement || '') + ' ' + dns_plugin.dependencies;

// Whether the plugin has a --<name>-credentials argument
const hasConfigArg = certificate.meta.dns_provider !== 'route53';
@@ -175,7 +175,7 @@ const setupCertbotPlugins = () => {
certificates.map(function (certificate) {
if (certificate.meta && certificate.meta.dns_challenge === true) {
const dns_plugin = dns_plugins[certificate.meta.dns_provider];
const packages_to_install = `${dns_plugin.package_name}==${dns_plugin.package_version} ${dns_plugin.dependencies}`;
const packages_to_install = `${dns_plugin.package_name}${dns_plugin.version_requirement || ''} ${dns_plugin.dependencies}`;

if (plugins.indexOf(packages_to_install) === -1) plugins.push(packages_to_install);

0 comments on commit 8d98a41

Please sign in to comment.