mirror of
https://github.com/hassio-addons/addon-home-panel.git
synced 2025-05-04 19:01:21 +00:00
16 lines
494 B
Bash
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"
|