mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-16 02:50:32 +02:00
Keep nginx backgrounded during wger startup
This commit is contained in:
@@ -106,7 +106,7 @@ mkdir -p /run/nginx /var/log/nginx
|
|||||||
if [ -f /run/nginx.pid ] && kill -0 "$(cat /run/nginx.pid)" 2> /dev/null; then
|
if [ -f /run/nginx.pid ] && kill -0 "$(cat /run/nginx.pid)" 2> /dev/null; then
|
||||||
bashio::log.info "nginx is already running"
|
bashio::log.info "nginx is already running"
|
||||||
elif nginx -t; then
|
elif nginx -t; then
|
||||||
nginx
|
nginx &
|
||||||
else
|
else
|
||||||
bashio::log.error "nginx configuration test failed"
|
bashio::log.error "nginx configuration test failed"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user