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