From 0353051436f96ce3025043d874bc3783e895bed4 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Thu, 18 Jan 2024 16:06:09 +1000 Subject: [PATCH] Prevent installing same plugin over and over --- backend/setup.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/setup.js b/backend/setup.js index 2520ab415..7a138fe5d 100644 --- a/backend/setup.js +++ b/backend/setup.js @@ -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;