From cca2be0becac529c2ec9e8805587501d12afce79 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 11 Feb 2025 15:06:57 +0100 Subject: [PATCH] Update 01-custom_script.sh --- .templates/01-custom_script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.templates/01-custom_script.sh b/.templates/01-custom_script.sh index 11f9549f0..4a63ccefc 100755 --- a/.templates/01-custom_script.sh +++ b/.templates/01-custom_script.sh @@ -6,8 +6,8 @@ set -e # INITIALIZATION # ################## -# Exit if /config is not mounted -if [ ! -d /config ]; then +# Exit if /config is not mounted or HA not used +if [ ! -d /config ] || ! bashio::supervisor.ping 2>/dev/null; then exit 0 fi