mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-01 09:27:44 +01:00
New PACKAGES logic
This commit is contained in:
@@ -3,17 +3,15 @@
|
||||
if [ ! -f "/usr/bin/bashio" ]; then
|
||||
echo "Bashio does not exist, executing script"
|
||||
(
|
||||
# Remove errors on apt-get
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
################
|
||||
# Install apps #
|
||||
################
|
||||
apt-get clean
|
||||
apt-get update
|
||||
apt-get install -yq --no-install-recommends \
|
||||
jq \
|
||||
curl \
|
||||
yamllint
|
||||
PACKAGES="${PACKAGES:="curl"}"
|
||||
|
||||
apt-get clean \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|
||||
|| apk add --no-cache ${PACKAGES}
|
||||
|
||||
###################
|
||||
# Install bashio #
|
||||
@@ -25,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
mv /tmp/bashio/lib /usr/lib/bashio
|
||||
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
|
||||
rm -rf /tmp/bashio
|
||||
|
||||
) >/dev/null
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user