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