mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-25 02:01:52 +02:00
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:
@@ -183,6 +183,13 @@ done
|
|||||||
[ "$VERBOSE" = true ] && echo "installing packages $PACKAGES"
|
[ "$VERBOSE" = true ] && echo "installing packages $PACKAGES"
|
||||||
if [ "$PACKMANAGER" = "apt" ]; then apt-get update > /dev/null; fi
|
if [ "$PACKMANAGER" = "apt" ]; then apt-get update > /dev/null; fi
|
||||||
if [ "$PACKMANAGER" = "pacman" ]; then pacman -Sy > /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
|
# Install apps one by one to allow failures
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
|
|||||||
Reference in New Issue
Block a user