fix: run apk update after enabling Alpine community repo

Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/0e7fb54a-7428-4f42-ad0e-8176f2fc3787

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-28 08:39:54 +00:00
parent 3ff5df873f
commit f99d40b197

View File

@@ -187,6 +187,7 @@ if [ "$PACKMANAGER" = "apk" ] && [ -f /etc/apk/repositories ] && ! grep -q "comm
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