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

16 lines
494 B
Bash

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