Skip to content

Commit

Permalink
Fix bug in example DNS hook.
Browse files Browse the repository at this point in the history
Fixes #186.

©! I hereby licence these changes under the licence with SHA256 hash
©! fd80a26fbb3f644af1fa994134446702932968519797227e07a1368dea80f0bc.
  • Loading branch information
hlandau committed Aug 5, 2016
1 parent 8d75281 commit 6d891bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _doc/dns.hook
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ get_apex() {
waitns() {
local ns="$1"
for ctr in $(seq 1 "$DNS_SYNC_TIMEOUT"); do
[ "$(dig +short "@${ns}" TXT "_acme-challenge.${CH_HOSTNAME}." | grep "$CH_TXT_VALUE" | wc -l)" == "1" ] && return 0
[ "$(dig +short "@${ns}" TXT "_acme-challenge.${CH_HOSTNAME}." | grep -- "$CH_TXT_VALUE" | wc -l)" == "1" ] && return 0
sleep 1
done

Expand Down

0 comments on commit 6d891bf

Please sign in to comment.