mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
				
	
	
		
			12 lines
		
	
	
		
			273 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			273 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
#!/bin/bash
 | 
						|
set -eo pipefail
 | 
						|
 | 
						|
. scripts/grafana-server/variables
 | 
						|
 | 
						|
HOST=${HOST:-$DEFAULT_HOST}
 | 
						|
PORT=${PORT:-$DEFAULT_PORT}
 | 
						|
 | 
						|
echo -e "Waiting for grafana-server to finish starting, host=$HOST, port=$PORT"
 | 
						|
 | 
						|
timeout 60 bash -c 'until nc -z $0 $1; do sleep 1; done' $HOST $PORT
 |