fix loop
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
6f9c38783d
commit
e9efb22c3e
2 changed files with 5 additions and 3 deletions
2
build.sh
2
build.sh
|
@ -6,6 +6,8 @@ docker build -t ungleich-certbot .
|
||||||
|
|
||||||
while [ $# -ge 1 ]; do
|
while [ $# -ge 1 ]; do
|
||||||
tag=$1; shift
|
tag=$1; shift
|
||||||
|
git tag -a -m "Version $tag" $tag
|
||||||
|
git push --tags
|
||||||
docker tag ungleich-certbot:latest ungleich/ungleich-certbot:${tag}
|
docker tag ungleich-certbot:latest ungleich/ungleich-certbot:${tag}
|
||||||
docker push ungleich/ungleich-certbot:${tag}
|
docker push ungleich/ungleich-certbot:${tag}
|
||||||
done
|
done
|
||||||
|
|
|
@ -15,11 +15,11 @@ while [ -z "$ipv6_addr" -a -z "$ipv4_addr" ]; do
|
||||||
ipv6_addr=$(dig +short "$DOMAIN" aaaa)
|
ipv6_addr=$(dig +short "$DOMAIN" aaaa)
|
||||||
ipv4_addr=$(dig +short "$DOMAIN" a)
|
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 ..."
|
echo "Resolving $DOMAIN failed, waiting 5 seconds before retrying ..."
|
||||||
sleep 5
|
sleep 5
|
||||||
else
|
|
||||||
echo "Resolved domain $DOMAIN: ipv6: $ipv6_addr ipv4: $ipv4_addr"
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue