Prevent installing same plugin over and over

This commit is contained in:
Jamie Curnow 2024-01-18 16:06:09 +10:00
parent a3630a6286
commit 0353051436
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E

View File

@ -115,7 +115,9 @@ const setupCertbotPlugins = () => {
certificates.map(function (certificate) {
if (certificate.meta && certificate.meta.dns_challenge === true) {
if (plugins.indexOf(certificate.meta.dns_provider) === -1) {
plugins.push(certificate.meta.dns_provider);
}
// Make sure credentials file exists
const credentials_loc = '/etc/letsencrypt/credentials/credentials-' + certificate.id;