Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
Nico Schottelius 2021-10-11 12:36:14 +09:00
parent 6f9c38783d
commit e9efb22c3e
2 changed files with 5 additions and 3 deletions

View file

@ -6,6 +6,8 @@ docker build -t ungleich-certbot .
while [ $# -ge 1 ]; do
tag=$1; shift
git tag -a -m "Version $tag" $tag
git push --tags
docker tag ungleich-certbot:latest ungleich/ungleich-certbot:${tag}
docker push ungleich/ungleich-certbot:${tag}
done

View file

@ -15,11 +15,11 @@ while [ -z "$ipv6_addr" -a -z "$ipv4_addr" ]; do
ipv6_addr=$(dig +short "$DOMAIN" aaaa)
ipv4_addr=$(dig +short "$DOMAIN" a)
if [ -z -z "$ipv6_addr" -a -z "$ipv4_addr" ]; then
if [ "$ipv6_addr" -o "$ipv4_addr" ]; then
echo "Resolved domain $DOMAIN: ipv6: $ipv6_addr ipv4: $ipv4_addr"
else
echo "Resolving $DOMAIN failed, waiting 5 seconds before retrying ..."
sleep 5
else
echo "Resolved domain $DOMAIN: ipv6: $ipv6_addr ipv4: $ipv4_addr"
fi
done