Merge pull request #2614 from alexbelgium/copilot/fix-qbittorrent-yamllint-installation

fix: enable Alpine community repo before apk installs in ha_automatic_packages.sh
This commit is contained in:
Alexandre
2026-03-28 09:58:20 +01:00
committed by GitHub

View File

@@ -183,6 +183,13 @@ done
[ "$VERBOSE" = true ] && echo "installing packages $PACKAGES"
if [ "$PACKMANAGER" = "apt" ]; then apt-get update > /dev/null; fi
if [ "$PACKMANAGER" = "pacman" ]; then pacman -Sy > /dev/null; fi
if [ "$PACKMANAGER" = "apk" ] && [ -f /etc/apk/repositories ] && ! grep -q "community" /etc/apk/repositories; then
ALPINE_VER=$(cat /etc/alpine-release 2>/dev/null | cut -d. -f1,2)
if [ -n "$ALPINE_VER" ]; then
echo "https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VER}/community" >> /etc/apk/repositories
apk update > /dev/null
fi
fi
# Install apps one by one to allow failures
# shellcheck disable=SC2086