nginx_docker-swag/root/app/duckdns-txt
2021-05-22 17:19:51 +07:00

13 lines
394 B
Bash

#!/bin/bash
. /config/.donoteditthisfile.conf
if [ "$VALIDATION" = "duckdns" ]; then
curl https://www.duckdns.org/update?domains=${CERTBOT_DOMAIN}\&token=${ORIGDUCKDNSTOKEN}\&txt=${CERTBOT_VALIDATION}
elif [ "$VALIDATION" = "dns-alias" ]; then
curl https://www.duckdns.org/update?domains=${ORIGALIASURL}\&token=${ORIGDUCKDNSTOKEN}\&txt=${CERTBOT_VALIDATION}
fi
echo "sleeping 60"
sleep 60