mv credentials to /usr/local/etc/pdns-certbot-credentials.ini

This commit is contained in:
Matthew Saunders Brown 2024-06-14 14:53:43 -07:00
parent bf3d1bd922
commit b0d111bf97

View File

@ -69,10 +69,10 @@ fi
# set vars # set vars
command="certbot certonly" command="certbot certonly"
if [[ -n $dnstxt ]]; then if [[ -n $dnstxt ]]; then
if [[ -f /usr/local/etc/pdns-credentials.ini ]]; then if [[ -f /usr/local/etc/pdns-certbot-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" command="$command --authenticator dns-powerdns --dns-powerdns-credentials /usr/local/etc/pdns-certbot-credentials.ini --dns-powerdns-propagation-seconds 3"
else 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 exit 1
fi fi
else else