birdnet-pipy: disable nginx service when ingress is unavailable

This commit is contained in:
Alexandre
2026-02-15 08:33:14 +01:00
parent 570453fd4c
commit 27a64fd80b
5 changed files with 17 additions and 6 deletions

View File

@@ -1,4 +1,10 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -euo pipefail
if [ -f /run/nginx-disabled ]; then
bashio::log.info "Nginx disabled because ingress is not active"
exec sleep infinity
fi
nginx