From 87cdcfdb189dd8386cede09c7e36ac7be7c638e1 Mon Sep 17 00:00:00 2001 From: aptalca Date: Sun, 27 Dec 2020 16:48:09 -0500 Subject: [PATCH] update dns conf inis --- root/defaults/dns-conf/aliyun.ini | 4 ++-- root/defaults/dns-conf/domeneshop.ini | 4 ++-- root/defaults/dns-conf/inwx.ini | 8 ++++---- root/defaults/dns-conf/transip.ini | 4 ++-- root/etc/cont-init.d/50-config | 6 ++++++ 5 files changed, 16 insertions(+), 10 deletions(-) diff --git a/root/defaults/dns-conf/aliyun.ini b/root/defaults/dns-conf/aliyun.ini index d8a648f..f1121d4 100644 --- a/root/defaults/dns-conf/aliyun.ini +++ b/root/defaults/dns-conf/aliyun.ini @@ -2,5 +2,5 @@ # https://ram.console.aliyun.com/ # And ensure your RAM account has AliyunDNSFullAccess permission. -certbot_dns_aliyun:dns_aliyun_access_key = 12345678 -certbot_dns_aliyun:dns_aliyun_access_key_secret = 1234567890abcdef1234567890abcdef +dns_aliyun_access_key = 12345678 +dns_aliyun_access_key_secret = 1234567890abcdef1234567890abcdef diff --git a/root/defaults/dns-conf/domeneshop.ini b/root/defaults/dns-conf/domeneshop.ini index e213287..569c713 100644 --- a/root/defaults/dns-conf/domeneshop.ini +++ b/root/defaults/dns-conf/domeneshop.ini @@ -1,4 +1,4 @@ # Instructions: https://github.com/domeneshop/certbot-dns-domeneshop#credentials # Replace with your values -certbot_dns_domeneshop:dns_domeneshop_client_token=1234567890abcdef -certbot_dns_domeneshop:dns_domeneshop_client_secret=1234567890abcdefghijklmnopqrstuvxyz1234567890abcdefghijklmnopqrs \ No newline at end of file +dns_domeneshop_client_token=1234567890abcdef +dns_domeneshop_client_secret=1234567890abcdefghijklmnopqrstuvxyz1234567890abcdefghijklmnopqrs \ No newline at end of file diff --git a/root/defaults/dns-conf/inwx.ini b/root/defaults/dns-conf/inwx.ini index 3479d23..086d866 100644 --- a/root/defaults/dns-conf/inwx.ini +++ b/root/defaults/dns-conf/inwx.ini @@ -1,6 +1,6 @@ # Instructions: https://github.com/oGGy990/certbot-dns-inwx # Replace with your values -certbot_dns_inwx:dns_inwx_url = https://api.domrobot.com/xmlrpc/ -certbot_dns_inwx:dns_inwx_username = your_username -certbot_dns_inwx:dns_inwx_password = your_password -certbot_dns_inwx:dns_inwx_shared_secret = your_shared_secret optional +dns_inwx_url = https://api.domrobot.com/xmlrpc/ +dns_inwx_username = your_username +dns_inwx_password = your_password +dns_inwx_shared_secret = your_shared_secret optional diff --git a/root/defaults/dns-conf/transip.ini b/root/defaults/dns-conf/transip.ini index f5ec586..0224e4c 100644 --- a/root/defaults/dns-conf/transip.ini +++ b/root/defaults/dns-conf/transip.ini @@ -2,5 +2,5 @@ # Convert the key to an RSA key (openssl rsa -in transip.key -out transip-rsa.key) # Place .key-file in the same directory as this file. Location "/config/dns-conf" is from within the container -certbot_dns_transip:dns_transip_username = -certbot_dns_transip:dns_transip_key_file = /config/dns-conf/transip-rsa.key \ No newline at end of file +dns_transip_username = +dns_transip_key_file = /config/dns-conf/transip-rsa.key \ No newline at end of file diff --git a/root/etc/cont-init.d/50-config b/root/etc/cont-init.d/50-config index 2dff0b4..386fbc4 100644 --- a/root/etc/cont-init.d/50-config +++ b/root/etc/cont-init.d/50-config @@ -185,6 +185,12 @@ else EMAILPARAM="--register-unsafely-without-email" fi +# update plugin names in dns conf inis +sed -i 's|^certbot_dns_aliyun:||g' /defaults/dns-conf/aliyun.ini +sed -i 's|^certbot_dns_domeneshop:||g' /defaults/dns-conf/domeneshop.ini +sed -i 's|^certbot_dns_inwx:||g' /defaults/dns-conf/inwx.ini +sed -i 's|^certbot_dns_transip:||g' /defaults/dns-conf/transip.ini + # setting the validation method to use if [ "$VALIDATION" = "dns" ]; then if [ "$DNSPLUGIN" = "route53" ]; then