mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-04 00:51:49 +00:00 
			
		
		
		
	Migrate old-style S6 scripts to s6-rc.d (#4311)
This commit is contained in:
		
							
								
								
									
										15
									
								
								docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/nginx/run
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										15
									
								
								docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/nginx/run
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
#!/command/with-contenv bashio
 | 
			
		||||
# shellcheck shell=bash
 | 
			
		||||
# ==============================================================================
 | 
			
		||||
# Community Hass.io Add-ons: ESPHome
 | 
			
		||||
# Runs the NGINX proxy
 | 
			
		||||
# ==============================================================================
 | 
			
		||||
 | 
			
		||||
bashio::log.info "Waiting for ESPHome dashboard to come up..."
 | 
			
		||||
 | 
			
		||||
while [[ ! -S /var/run/esphome.sock ]]; do
 | 
			
		||||
  sleep 0.5
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
bashio::log.info "Starting NGINX..."
 | 
			
		||||
exec nginx
 | 
			
		||||
		Reference in New Issue
	
	Block a user