Skip to content
This repository was archived by the owner on Feb 28, 2020. It is now read-only.

Commit 6742279

Browse files
committed
🚑 Fixes incorrect handling of architecture with user Python packages
1 parent 7bb7783 commit 6742279

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

appdaemon/rootfs/etc/cont-init.d/appdaemon.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Configures AppDaemon
55
# ==============================================================================
66
readonly CONFIG_FILE="/config/appdaemon/appdaemon.yaml"
7+
declare arch
78
declare ha_url
89

910
# Creates initial AppDaemon configuration in case it is non-existing
@@ -89,10 +90,11 @@ fi
8990

9091
# Install user configured/requested Python packages
9192
if bashio::config.has_value 'python_packages'; then
93+
arch=$(bashio::info.arch)
9294
for package in $(bashio::config 'python_packages'); do
9395
pip3 install \
9496
--prefer-binary \
95-
--find-links "https://wheels.hass.io/alpine-3.10/${BUILD_ARCH}/" \
97+
--find-links "https://wheels.hass.io/alpine-3.10/${arch}/" \
9698
"$package" \
9799
|| bashio::exit.nok "Failed installing package ${package}"
98100
done

0 commit comments

Comments
 (0)