mirror of
https://github.com/home-assistant/addons.git
synced 2025-07-20 16:57:09 +00:00
Wait for TXT record to propagate (#3979)
* Wait for TXT record to propagate * Format while loop over multiple lines * Make command more robust to strange domain names and tokens * Bumping version * Update CHANGELOG.md
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 1.19.0
|
||||
|
||||
- Wait for up to 60 seconds for TXT record to propagate when deploying challenges
|
||||
|
||||
## 1.18.0
|
||||
|
||||
- Update to use s6-overlay to manage service
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
version: 1.18.0
|
||||
version: 1.19.0
|
||||
slug: duckdns
|
||||
name: Duck DNS
|
||||
description: >-
|
||||
|
@ -32,6 +32,11 @@ deploy_challenge() {
|
||||
# be found in the $TOKEN_FILENAME file.
|
||||
|
||||
curl -s "https://www.duckdns.org/update?domains=$ALIAS&token=$SYS_TOKEN&txt=$TOKEN_VALUE"
|
||||
timeout 60s bash -c -- "
|
||||
while ! dig -t txt \"_acme-challenge.$ALIAS\" | grep -F \"$TOKEN_VALUE\" > /dev/null; do
|
||||
sleep 5;
|
||||
done
|
||||
"
|
||||
}
|
||||
|
||||
clean_challenge() {
|
||||
|
Reference in New Issue
Block a user