12 lines
298 B
Bash
12 lines
298 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
. $(dirname $(realpath $0))/hook-config
|
||
|
|
||
|
curl "$API_URL/api/1/add?token=$API_TOKEN&record=$CERTBOT_DOMAIN&value=$CERTBOT_VALIDATION"
|
||
|
|
||
|
# FIXME: ovh is shit
|
||
|
while [ "$(dig _acme-challenge.$CERTBOT_DOMAIN TXT +short | wc -l)" -lt 1 ]; do
|
||
|
echo 'still waiting...' >&2
|
||
|
sleep 5;
|
||
|
done
|