From a6050c73ff6fd934cc545935f348b5b3b389d517 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 11 Feb 2025 15:07:16 +0100 Subject: [PATCH] Update 01-config_yaml.sh --- .templates/01-config_yaml.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.templates/01-config_yaml.sh b/.templates/01-config_yaml.sh index a694929e9..742234da0 100755 --- a/.templates/01-config_yaml.sh +++ b/.templates/01-config_yaml.sh @@ -7,12 +7,8 @@ set -e # INITIALIZATION # ################## -if ! bashio::supervisor.ping 2>/dev/null; then - exit 0 -fi - -# Exit if /config is not mounted -if [ ! -d /config ]; then +# Disable if config not present +if [ ! -d /config ] || ! bashio::supervisor.ping 2>/dev/null; then exit 0 fi