addon-home-panel/home-panel/rootfs/etc/services.d/nginx/run
2018-12-15 14:14:41 +00:00

17 lines
525 B
Text

#!/usr/bin/with-contenv bash
# ==============================================================================
# Community Hass.io Add-ons: Home Panel
# Runs the NGINX daemon
# ==============================================================================
# shellcheck disable=SC1091
source /usr/lib/hassio-addons/base.sh
hass.log.info "Starting NGINX for Riot web..."
if hass.config.true 'ssl'; then
options='/etc/nginx/nginx-ssl.conf'
else
options='/etc/nginx/nginx.conf'
fi
exec nginx -c "$options"
exec sleep 10