We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9cccf94 + 02ad1d6 commit 52ddf16Copy full SHA for 52ddf16
jobs/grafana/templates/bin/grafana-admin-password
@@ -5,7 +5,7 @@ set -eu
5
retries=60
6
for ((i=0; i<=retries; i++)); do
7
echo "Waiting for grafana to listen on port <%= p('grafana.server.http_port') %> ($i/$retries)"
8
- if nc 127.0.0.1 <%= p('grafana.server.http_port') %> < /dev/null; then
+ if nc -w 5 127.0.0.1 <%= p('grafana.server.http_port') %> < /dev/null; then
9
echo "Grafana is ready"
10
break
11
fi
0 commit comments