mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-13 16:34:22 +01:00
Update automatic_packages.sh
This commit is contained in:
@@ -45,6 +45,7 @@ fi
|
||||
|
||||
# Scripts
|
||||
for files in "/scripts" "/etc/cont-init.d"; do
|
||||
echo "Looking in $files"
|
||||
if ls $files/*smb* 1> /dev/null 2>&1; then
|
||||
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES cifs-utils keyutils samba samba-client"
|
||||
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES cifs-utils keyutils samba smbclient"
|
||||
@@ -76,6 +77,7 @@ for files in "/scripts" "/etc/cont-init.d"; do
|
||||
fi
|
||||
|
||||
if [[ $(grep -rnw "$files/" -e 'lastversion') ]]; then
|
||||
echo "found last version"
|
||||
[ $PACKMANAGER = "apk" ] && apk add --no-cache pip \
|
||||
&& pip install --upgrade pip \
|
||||
&& pip install lastversion
|
||||
|
||||
Reference in New Issue
Block a user