From b0d111bf9752dd9d41c1d3e8a9ec74bab053a9cd Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Fri, 14 Jun 2024 14:53:43 -0700 Subject: [PATCH] mv credentials to /usr/local/etc/pdns-certbot-credentials.ini --- bin/letsencrypt-certonly.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/letsencrypt-certonly.sh b/bin/letsencrypt-certonly.sh index 7659a5f..dffc9cf 100755 --- a/bin/letsencrypt-certonly.sh +++ b/bin/letsencrypt-certonly.sh @@ -69,10 +69,10 @@ fi # set vars command="certbot certonly" if [[ -n $dnstxt ]]; then - if [[ -f /usr/local/etc/pdns-credentials.ini ]]; then - command="$command --authenticator certbot-dns-powerdns:dns-powerdns --certbot-dns-powerdns:dns-powerdns-credentials /usr/local/etc/pdns-credentials.ini --certbot-dns-powerdns:dns-powerdns-propagation-seconds 3" + if [[ -f /usr/local/etc/pdns-certbot-credentials.ini ]]; then + command="$command --authenticator dns-powerdns --dns-powerdns-credentials /usr/local/etc/pdns-certbot-credentials.ini --dns-powerdns-propagation-seconds 3" else - echo "ERROR: /usr/local/etc/pdns-credentials.ini config file does not exist, can't use -t (DNS TXT authenticator)." + echo "ERROR: /usr/local/etc/pdns-certbot-credentials.ini config file does not exist, can't use -t (DNS TXT authenticator)." exit 1 fi else