Files
hassio-addons/scrutiny/rootfs/etc/services.d/nginx/finish
2025-08-15 18:05:36 +02:00

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