#!/usr/bin/with-contenv bash
# ==============================================================================
# Community Hass.io Add-ons: SonWEB
# Runs the Nginx daemon
# ==============================================================================
# shellcheck disable=SC1091
#source /usr/lib/hassio-addons/base.sh

# Wait for PHP-FPM to become available
s6-svwait -u -t 5000 /var/run/service/php-fpm

exec nginx -g "daemon off;"
