diff --git a/README.md b/README.md index 9e89ea4..a356a0d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # getssl -![Run all tests](https://github.com/srvrco/getssl/workflows/Run%20all%20tests/badge.svg) ![shellcheck](https://github.com/srvrco/getssl/workflows/shellcheck/badge.svg) +![Run all tests on Pebble](https://github.com/srvrco/getssl/actions/workflows/run-tests-pebble.yml/badge.svg) ![shellcheck](https://github.com/srvrco/getssl/workflows/shellcheck/badge.svg) Obtain SSL certificates from the letsencrypt.org ACME server. Suitable for automating the process on remote servers. diff --git a/dns_scripts/dns_add_dnsmasq b/dns_scripts/dns_add_dnsmasq new file mode 100644 index 0000000..596f101 --- /dev/null +++ b/dns_scripts/dns_add_dnsmasq @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Make sure you enable in the /etc/dnsmasq.conf this line conf-dir=/etc/dnsmasq.d/,*.conf + +echo "txt-record=_acme-challenge.\${1},\$2" > /etc/dnsmasq.d/acme-challenge.conf + +systemctl restart dnsmasq diff --git a/dns_scripts/dns_del_dnsmasq b/dns_scripts/dns_del_dnsmasq new file mode 100644 index 0000000..771aaec --- /dev/null +++ b/dns_scripts/dns_del_dnsmasq @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Make sure you enable in the /etc/dnsmasq.conf this line conf-dir=/etc/dnsmasq.d/,*.conf + +echo "" > /etc/dnsmasq.d/acme-challenge.conf + +systemctl restart dnsmasq