Update ha_entrypoint.sh

This commit is contained in:
Alexandre
2026-01-30 09:09:05 +01:00
committed by GitHub
parent 00e41e2529
commit 3a9bfb4884

View File

@@ -2,6 +2,16 @@
# shellcheck shell=bash
set -euo pipefail
######################################
# Accept running without supervisor #
######################################
if ! bashio::supervisor.ping 2> /dev/null; then
bashio::log.warning "Using standalone mode to run bashio commands without HA supervisor"
mv /usr/local/lib/bashio-standalone.sh /usr/bin/bashio
chmod +x /usr/bin/bashio
fi
##########################################
# Detect if this is PID1 (main process) #
##########################################