Skip to content

Commit

Permalink
Update destroy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
benchiverton committed Jul 2, 2024
1 parent a18d264 commit 02e40db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions terraform/instance/container_apps_bind_dns/scripts/destroy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@ echo "removed the custom domain from the container app"
# wait for the custom domain to be removed
tries=0
until [ "$tries" -ge 12 ]; do
DOES_CUSTOM_DOMAIN_EXIST=$(
[[ -z $(
az containerapp hostname list \
-n $CONTAINER_APP_NAME \
-g $CONTAINER_APP_RESOURCE_GROUP \
--query "[?name=='$CUSTOM_DOMAIN'].name" \
--output tsv
)
[[ -z "${$DOES_CUSTOM_DOMAIN_EXIST}" ]] && break
) ]] && break
tries=$((tries + 1))

sleep 10
Expand Down

0 comments on commit 02e40db

Please sign in to comment.