mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
10 lines
365 B
Plaintext
Executable File
10 lines
365 B
Plaintext
Executable File
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
# ==============================================================================
|
|
# Stop the container when Nginx fails
|
|
# ==============================================================================
|
|
if [[ "$1" -ne 0 && "$1" -ne 256 ]]; then
|
|
bashio::log.error "Nginx exited with code $1"
|
|
kill -15 1
|
|
fi
|