Skip to content

Commit

Permalink
Prevent installing same plugin over and over
Browse files Browse the repository at this point in the history
  • Loading branch information
jc21 committed Jan 18, 2024
1 parent a3630a6 commit 0353051
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ const setupCertbotPlugins = () => {

certificates.map(function (certificate) {
if (certificate.meta && certificate.meta.dns_challenge === true) {
plugins.push(certificate.meta.dns_provider);
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;
Expand Down

0 comments on commit 0353051

Please sign in to comment.