summaryrefslogtreecommitdiffstats
path: root/client/install-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'client/install-hook.sh')
-rwxr-xr-xclient/install-hook.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/client/install-hook.sh b/client/install-hook.sh
index 08576dd..fb78b26 100755
--- a/client/install-hook.sh
+++ b/client/install-hook.sh
@@ -2,10 +2,4 @@
. $(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
+curl "$API_URL/api/1/add?token=$API_TOKEN&record=_acme-challenge.$CERTBOT_DOMAIN&value=$CERTBOT_VALIDATION&type=TXT"