mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-29 18:22:32 +02:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user