mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-12 08:00:35 +01:00
Update automatic_packages.sh
This commit is contained in:
@@ -74,6 +74,18 @@ for files in "/scripts" "/etc/cont-init.d" "/etc"; do
|
||||
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES moreutils"
|
||||
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES moreutils"
|
||||
fi
|
||||
|
||||
if [ $(grep -rnw "$files" -e 'lastversion' &>/dev/null) ]; then
|
||||
[ $PACKMANAGER = "apk" ] && apk add --no-cache pip \
|
||||
&& pip install --upgrade pip \
|
||||
&& pip install lastversion
|
||||
[ $PACKMANAGER = "apt" ] && apt-get clean \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends pip \
|
||||
&& pip install --upgrade pip \
|
||||
&& pip install lastversion
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
####################
|
||||
|
||||
Reference in New Issue
Block a user