From 0eb10264dd7e59ef622872d1e2fbab49870a1af6 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 15 Jan 2024 21:05:21 +0100 Subject: [PATCH] Update ha_entrypoint_modif.sh --- .templates/ha_entrypoint_modif.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.templates/ha_entrypoint_modif.sh b/.templates/ha_entrypoint_modif.sh index 010d13712..7ce2d48ba 100755 --- a/.templates/ha_entrypoint_modif.sh +++ b/.templates/ha_entrypoint_modif.sh @@ -47,6 +47,7 @@ done # Define shebang sed -i "s|/command/with-contenv bashio|$shebang|g" /ha_entrypoint.sh -# Avoid log_level interference # Avoid interference with LOG_LEVEL used in the app -sed -i 's|{LOG_LEVEL:|{8:|g' /usr/lib/bashio/bashio.sh +if [ -f /usr/lib/bashio/bashio.sh ]; then + sed -i 's|{LOG_LEVEL:|{8:|g' /usr/lib/bashio/bashio.sh +fi