certbot-duckdns/certbot-cleanup

7 lines
216 B
Text
Raw Normal View History

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=&clear=True%s'
test "$(printf "url=$baseurl\n" "$DUCKDNS_DOMAIN" "$DUCKDNS_TOKEN" "$CERTBOT_VALIDATION" | curl -K -)" = 'OK'