certbot-duckdns/certbot-cleanup

4 lines
184 B
Bash
Executable file

#!/usr/bin/env sh
baseurl='https://www.duckdns.org/update?domains=%s&token=%s&txt=&clear=True'
test "$(printf "url=$baseurl\n" "$DUCKDNS_DOMAIN" "$DUCKDNS_TOKEN" | curl -K -)" = 'OK'