fix(healthcheck): use address configured if not empty (#2938)
							parent
							
								
									70c826133b
								
							
						
					
					
						commit
						81cd8fc6d3
					
				| 
						 | 
				
			
			@ -1,3 +1,5 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
PORT=${FB_PORT:-$(jq .port /.filebrowser.json)}
 | 
			
		||||
curl -f http://localhost:$PORT/health || exit 1
 | 
			
		||||
ADDRESS=${FB_ADDRESS:-$(jq .address /.filebrowser.json)}
 | 
			
		||||
ADDRESS=${ADDRESS:-localhost}
 | 
			
		||||
curl -f http://$ADDRESS:$PORT/health || exit 1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue