Commit 3cbb39f7 authored by Paul Cammish's avatar Paul Cammish

Merge branch 'issue-272_buster' into 'buster-testing'

Issue 272 (buster)

See merge request !147
parents 8936bad9 77b47413
Pipeline #735 passed with stages
in 38 minutes and 56 seconds
sympl-core (10.0.191205.0) stable; urgency=medium
* Updated IPv6 Only workaround.
-- Paul Cammish <sympl@kelduum.net> Thu, 05 Dec 2019 15:43:02 +0000
sympl-core (10.0.191017.0) stable; urgency=medium
* Updated sympl-ssl to use Let's Encrypt ACME v02 API
......
......@@ -6,10 +6,10 @@
if [ $( sympl-ip -a | grep -c '\.' ) == 0 ] || [ $( getent hosts ipv4only.arpa | grep -c ':' ) != 0 ] ; then
if [[ $@ == *'--verbose'* ]]; then echo 'Applying IPv6 only workaround...'; fi
# Do a DNS lookup for acme-v01.api.letsencrypt.org...
ipv6=$( dig -t AAAA acme-v01.api.letsencrypt.org +short | grep ':' | head -n 1 )
# Do a DNS lookup for acme-v02.api.letsencrypt.org...
ipv6=$( dig -t AAAA acme-v02.api.letsencrypt.org +short | grep ':' | head -n 1 )
# ... and add it to /etc/hosts
echo -e "$ipv6\facme-v01.api.letsencrypt.org # sympl-ssl workaround" >> /etc/hosts
echo -e "$ipv6\facme-v02.api.letsencrypt.org # sympl-ssl workaround" >> /etc/hosts
# run sympl-ssl with all the parameters passed
/usr/sbin/sympl-ssl.rb $@
# and then remove the line from /etc/hosts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment