MythicSalt/states/certificates/dehydrated/dehydrated-mythic-dns01/deploy-challenge/mythic-dns01

15 lines
401 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# Copyright (C) 2018 Mythic Beasts Ltd
. "$(dirname "$0")"/../common/mythic-dns01
echo -ne "$ARGS" | while read domain filename token; do
echo " ++ setting DNS for $domain"
call_api ADD _acme-challenge.$domain $token
done
echo -ne "$ARGS" | while read domain filename token; do
echo " ++ waiting DNS for $domain"
wait_for_dns _acme-challenge.$domain $token
done