mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-13 03:11:02 +01:00
New PACKAGES logic
This commit is contained in:
@@ -6,16 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
################
|
||||
# Install apps #
|
||||
################
|
||||
apt-get clean &&
|
||||
apt-get update &&
|
||||
apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
samba \
|
||||
smbclient \
|
||||
nginx &&
|
||||
apt-get clean
|
||||
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 #
|
||||
@@ -27,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