update certbot renew script [CI SKIP]

This commit is contained in:
viktorbarzin 2021-09-05 20:08:49 +01:00
parent 2417677247
commit 83880f4159
No known key found for this signature in database
GPG key ID: 0EB088298288D958

View file

@ -9,7 +9,7 @@ spawn certbot certonly --manual --preferred-challenge=dns --email me@viktorbarzi
set prompt "$"
set dns_file "$pwd/modules/kubernetes/bind/extra/viktorbarzin.me"
expect -re "Before continuing, verify" {
expect -re "Please deploy a DNS TXT" {
set challenge [ exec sh -c "echo '$expect_out(buffer)' | tail -n 3 | head -n 1" ]
set dns_record "_acme-challenge IN TXT \"$challenge\""
puts $dns_record