Fixes eslint errors

This commit is contained in:
chaptergy 2020-10-17 12:25:36 +02:00
parent 1028de8158
commit 08ab62108f
2 changed files with 30 additions and 28 deletions

View File

@ -932,6 +932,7 @@ const internalCertificate = {
// Prepend the path to the credentials file as an environment variable
if (certificate.meta.dns_provider === 'route53') {
const credentials_loc = '/etc/letsencrypt/credentials/credentials-' + certificate.id;
main_cmd = 'AWS_CONFIG_FILE=\'' + credentials_loc + '\' ' + main_cmd;
}

View File

@ -176,8 +176,9 @@ const setupCertbotPlugins = () => {
certificates.map(function (certificate) {
if (certificate.meta && certificate.meta.dns_challenge === true) {
const dns_plugin = dns_plugins[certificate.meta.dns_provider];
const package = `${dns_plugin.package_name}==${dns_plugin.package_version}`;
if (plugins.indexOf(package) === -1) plugins.push(package);
const package_to_install = `${dns_plugin.package_name}==${dns_plugin.package_version}`;
if (plugins.indexOf(package_to_install) === -1) plugins.push(package_to_install);
// Make sure credentials file exists
const credentials_loc = '/etc/letsencrypt/credentials/credentials-' + certificate.id;