Skip to content

Commit 8d98a41

Browse files
authored
Merge pull request #1469 from jc21/certbot-plugin-updates
Certbot plugin updates
2 parents 9e169fb + 8865aa9 commit 8d98a41

File tree

3 files changed

+209
-209
lines changed

3 files changed

+209
-209
lines changed

backend/internal/certificate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ const internalCertificate = {
869869

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

874874
// Whether the plugin has a --<name>-credentials argument
875875
const hasConfigArg = certificate.meta.dns_provider !== 'route53';

backend/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const setupCertbotPlugins = () => {
175175
certificates.map(function (certificate) {
176176
if (certificate.meta && certificate.meta.dns_challenge === true) {
177177
const dns_plugin = dns_plugins[certificate.meta.dns_provider];
178-
const packages_to_install = `${dns_plugin.package_name}==${dns_plugin.package_version} ${dns_plugin.dependencies}`;
178+
const packages_to_install = `${dns_plugin.package_name}${dns_plugin.version_requirement || ''} ${dns_plugin.dependencies}`;
179179

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

0 commit comments

Comments
 (0)