File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,13 @@ retryCount=0
103
103
eshopRegistry=" "
104
104
105
105
while [ -z " $eshopRegistry " ] && [ $retryCount -lt 10 ]; do
106
+ exec & > /dev/null
106
107
eshopRegistry=$( az acr show -n $eshopAcrName --query " loginServer" -otsv)
108
+ exec >& /dev/tty
109
+
107
110
if [ -z " $eshopRegistry " ]; then
108
- echo " ACR instance wasn't ready. If this takes more than a minute or two, something is probably wrong. Trying again in 5 seconds ..."
109
- sleep 5
111
+ echo " ACR instance wasn't ready. I'll keep trying for up to 5 minutes ..."
112
+ sleep 30
110
113
retryCount=$(( retryCount+ 1 ))
111
114
fi
112
115
done
@@ -126,7 +129,6 @@ aksIdentityObjectId=$(az aks show -g $eshopRg -n $ESHOP_AKSNAME --query identity
126
129
if [ ! -z " $aksIdentityObjectId " ]
127
130
then
128
131
acrResourceId=$( az acr show -n $eshopAcrName -g $eshopRg --query id -o tsv)
129
-
130
132
az role assignment create \
131
133
--role AcrPull \
132
134
--assignee-object-id $aksIdentityObjectId \
You can’t perform that action at this time.
0 commit comments