From 6f8db95249d9afd8d736a1dbbd3ea584a26e8622 Mon Sep 17 00:00:00 2001 From: Devedse Date: Thu, 24 Aug 2023 13:21:01 +0200 Subject: [PATCH] Added force renewal + --dns-duckdns-no-txt-restore --- backend/internal/certificate.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/internal/certificate.js b/backend/internal/certificate.js index 871a2805..f68ef30b 100644 --- a/backend/internal/certificate.js +++ b/backend/internal/certificate.js @@ -908,6 +908,10 @@ const internalCertificate = { mainCmd = 'AWS_CONFIG_FILE=\'' + credentialsLocation + '\' ' + mainCmd; } + if (certificate.meta.dns_provider === 'duckdns') { + mainCmd = mainCmd + ' --dns-duckdns-no-txt-restore'; + } + logger.info('Command:', `${credentialsCmd} && ${prepareCmd} && ${mainCmd}`); return utils.exec(credentialsCmd) @@ -1012,7 +1016,7 @@ const internalCertificate = { logger.info(`Renewing Let'sEncrypt certificates via ${dns_plugin.display_name} for Cert #${certificate.id}: ${certificate.domain_names.join(', ')}`); - let mainCmd = certbotCommand + ' renew ' + + let mainCmd = certbotCommand + ' renew --force-renewal ' + '--config "' + letsencryptConfig + '" ' + '--work-dir "/tmp/letsencrypt-lib" ' + '--logs-dir "/tmp/letsencrypt-log" ' +