2020-10-29 16:38:49 +01:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
baseurl='https://www.duckdns.org/update?domains=%s&token=%s&txt=%s'
|
|
|
|
result="$(printf "url=$baseurl\n" "$DUCKDNS_DOMAIN" "$DUCKDNS_TOKEN" "$CERTBOT_VALIDATION" | curl -K -)"
|
|
|
|
# give some time for the record to update
|
2020-10-29 23:09:21 +01:00
|
|
|
sleep 300
|
2020-10-29 16:38:49 +01:00
|
|
|
test "$result" = 'OK'
|