mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 13:10:30 -04:00
* Clean up file if exists and mkdir -p * Make importing dashboards more robust * Update info msgs
11 lines
234 B
Bash
11 lines
234 B
Bash
#!/command/with-contenv bashio
|
|
# -*- bash -*-
|
|
# shellcheck shell=bash
|
|
|
|
bashio::log.info "Starting NGINX..."
|
|
if [ -f /run/nginx ]; then
|
|
rm -f /run/nginx
|
|
fi
|
|
mkdir -p /run/nginx
|
|
|
|
exec nginx -g 'daemon off;error_log /proc/1/fd/1 error;' |