15 lines
401 B
Plaintext
15 lines
401 B
Plaintext
|
#!/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
|