From 573c9721c6eabee0a881682bdd0f03c633fd8b44 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 30 Dec 2025 09:23:50 +0100 Subject: [PATCH] Use latest bashio release in template --- .templates/ha_automatic_packages.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.templates/ha_automatic_packages.sh b/.templates/ha_automatic_packages.sh index 3a5158a08..cb65c7999 100755 --- a/.templates/ha_automatic_packages.sh +++ b/.templates/ha_automatic_packages.sh @@ -237,9 +237,10 @@ for files in "/etc/services.d" "/etc/cont-init.d"; do # Bashio if grep -q -rnw "$files/" -e 'bashio' && [ ! -f "/usr/bin/bashio" ]; then [ "$VERBOSE" = true ] && echo "install bashio" - BASHIO_VERSION="0.14.3" + BASHIO_VERSION="latest" mkdir -p /tmp/bashio - curl -f -L -s -S "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" | tar -xzf - --strip 1 -C /tmp/bashio + BASHIO_TAG="$(curl -f -L -s -S "https://api.github.com/repos/hassio-addons/bashio/releases/${BASHIO_VERSION}" | awk -F '\"' '/tag_name/{print $4; exit}')" + curl -f -L -s -S "https://github.com/hassio-addons/bashio/archive/${BASHIO_TAG}.tar.gz" | tar -xzf - --strip 1 -C /tmp/bashio mv /tmp/bashio/lib /usr/lib/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio rm -rf /tmp/bashio