This commit is contained in:
Alexandre
2023-10-14 22:41:27 +02:00
committed by GitHub
parent 8a3c2a7513
commit d6b1682234
4 changed files with 18 additions and 113 deletions

View File

@@ -0,0 +1,8 @@
#!/usr/bin/execlineb -S0
# ==============================================================================
# Take down the S6 supervision tree when Nginx fails
# ==============================================================================
if { s6-test ${1} -ne 0 }
if { s6-test ${1} -ne 256 }
s6-svscanctl -t /var/run/s6/services

View File

@@ -0,0 +1,9 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
# ==============================================================================
bashio::net.wait_for "$port" localhost 8081
bashio::log.info "Starting NGinx..."
exec nginx