esphome/docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/nginx/run
2023-01-18 18:22:35 +01:00

16 lines
451 B
Plaintext
Executable File

#!/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