Skip to content

Commit

Permalink
Added force renewal + --dns-duckdns-no-txt-restore
Browse files Browse the repository at this point in the history
  • Loading branch information
devedse committed Aug 24, 2023
1 parent fa851b6 commit 6f8db95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/internal/certificate.js
Expand Up @@ -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)
Expand Down Expand Up @@ -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" ' +
Expand Down

0 comments on commit 6f8db95

Please sign in to comment.