home-assistant-addon/esphome-dev/rootfs/etc/services.d/nginx/run

15 lines
419 B
Plaintext
Raw Normal View History

2019-03-17 20:07:36 +01:00
#!/usr/bin/with-contenv bashio
2019-02-13 22:05:11 +01:00
# ==============================================================================
# Community Hass.io Add-ons: ESPHome
# Runs the NGINX proxy
# ==============================================================================
2019-04-24 17:09:50 +02:00
bashio::log.info "Waiting for dashboard to come up..."
while [[ ! -S /var/run/esphome.sock ]]; do
sleep 0.5
done
2019-03-17 20:07:36 +01:00
bashio::log.info "Starting NGINX..."
2019-04-24 17:09:50 +02:00
exec nginx