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

Commit

Permalink
🚑 Fixes incorrect handling of architecture with user Python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Aug 10, 2019
1 parent 7bb7783 commit 6742279
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion appdaemon/rootfs/etc/cont-init.d/appdaemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6742279

Please sign in to comment.