10 lines
		
	
	
		
			328 B
		
	
	
	
		
			Bash
		
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			328 B
		
	
	
	
		
			Bash
		
	
	
#!/bin/sh
 | 
						|
 | 
						|
set -e
 | 
						|
 | 
						|
PORT=${FB_PORT:-$(cat /config/settings.json | sh /JSON.sh | grep '\["port"\]' | awk '{print $2}')}
 | 
						|
ADDRESS=${FB_ADDRESS:-$(cat /config/settings.json | sh /JSON.sh | grep '\["address"\]' | awk '{print $2}' | sed 's/"//g')}
 | 
						|
ADDRESS=${ADDRESS:-localhost}
 | 
						|
 | 
						|
wget -q --spider http://$ADDRESS:$PORT/health || exit 1
 |