Files
hassio-addons/scrutiny_original/rootfs/etc/services.d/nginx/finish
2026-06-13 21:43:57 +02:00

10 lines
365 B
Plaintext

#!/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