From 67422790ff81d2dd146ff1ed3df3cf6fb7765188 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 10 Aug 2019 10:16:54 +0200 Subject: [PATCH] :ambulance: Fixes incorrect handling of architecture with user Python packages --- appdaemon/rootfs/etc/cont-init.d/appdaemon.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appdaemon/rootfs/etc/cont-init.d/appdaemon.sh b/appdaemon/rootfs/etc/cont-init.d/appdaemon.sh index 169821d..16c0a59 100644 --- a/appdaemon/rootfs/etc/cont-init.d/appdaemon.sh +++ b/appdaemon/rootfs/etc/cont-init.d/appdaemon.sh @@ -4,6 +4,7 @@ # Configures AppDaemon # ============================================================================== readonly CONFIG_FILE="/config/appdaemon/appdaemon.yaml" +declare arch declare ha_url # Creates initial AppDaemon configuration in case it is non-existing @@ -89,10 +90,11 @@ fi # Install user configured/requested Python packages if bashio::config.has_value 'python_packages'; then + arch=$(bashio::info.arch) for package in $(bashio::config 'python_packages'); do pip3 install \ --prefer-binary \ - --find-links "https://wheels.hass.io/alpine-3.10/${BUILD_ARCH}/" \ + --find-links "https://wheels.hass.io/alpine-3.10/${arch}/" \ "$package" \ || bashio::exit.nok "Failed installing package ${package}" done