Skip to content

Commit 0353051

Browse files
committed
Prevent installing same plugin over and over
1 parent a3630a6 commit 0353051

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/setup.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ const setupCertbotPlugins = () => {
115115

116116
certificates.map(function (certificate) {
117117
if (certificate.meta && certificate.meta.dns_challenge === true) {
118-
plugins.push(certificate.meta.dns_provider);
118+
if (plugins.indexOf(certificate.meta.dns_provider) === -1) {
119+
plugins.push(certificate.meta.dns_provider);
120+
}
119121

120122
// Make sure credentials file exists
121123
const credentials_loc = '/etc/letsencrypt/credentials/credentials-' + certificate.id;

0 commit comments

Comments
 (0)