Skip to content

Commit 6f8db95

Browse files
committed
Added force renewal + --dns-duckdns-no-txt-restore
1 parent fa851b6 commit 6f8db95

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backend/internal/certificate.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,10 @@ const internalCertificate = {
908908
mainCmd = 'AWS_CONFIG_FILE=\'' + credentialsLocation + '\' ' + mainCmd;
909909
}
910910

911+
if (certificate.meta.dns_provider === 'duckdns') {
912+
mainCmd = mainCmd + ' --dns-duckdns-no-txt-restore';
913+
}
914+
911915
logger.info('Command:', `${credentialsCmd} && ${prepareCmd} && ${mainCmd}`);
912916

913917
return utils.exec(credentialsCmd)
@@ -1012,7 +1016,7 @@ const internalCertificate = {
10121016

10131017
logger.info(`Renewing Let'sEncrypt certificates via ${dns_plugin.display_name} for Cert #${certificate.id}: ${certificate.domain_names.join(', ')}`);
10141018

1015-
let mainCmd = certbotCommand + ' renew ' +
1019+
let mainCmd = certbotCommand + ' renew --force-renewal ' +
10161020
'--config "' + letsencryptConfig + '" ' +
10171021
'--work-dir "/tmp/letsencrypt-lib" ' +
10181022
'--logs-dir "/tmp/letsencrypt-log" ' +

0 commit comments

Comments
 (0)