mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 15:45:56 +02:00
birdnet-pipy: disable nginx service when ingress is unavailable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user