update standalone

This commit is contained in:
Alexandre
2026-01-29 11:32:18 +01:00
committed by GitHub
parent 25fa68f7a9
commit aa987e1ede
109 changed files with 329 additions and 337 deletions

View File

@@ -2,22 +2,14 @@
set -euo pipefail
REAL_BASHIO="/usr/bin/bashio.real"
if [ -x "/usr/bin/bashio" ] && [ ! -x "$REAL_BASHIO" ]; then
REAL_BASHIO="/usr/bin/bashio"
fi
# ---- Supervisor detection ----
if [ -x "$REAL_BASHIO" ]; then
# Fast HA detection (s6)
if [ -S /run/s6/services/supervisor ]; then
exec "$REAL_BASHIO" "$@"
fi
# Fallback ping detection (DNS/API)
if "$REAL_BASHIO" supervisor ping >/dev/null 2>&1; then
exec "$REAL_BASHIO" "$@"
fi
# Fast HA detection (s6)
if [ -S /run/s6/services/supervisor ]; then
exec "$REAL_BASHIO" "$@"
elif "$REAL_BASHIO" supervisor ping >/dev/null 2>&1; then
exec "$REAL_BASHIO" "$@"
fi
# ---- Standalone fallback ----