mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 05:14:04 +02:00
Update automatic_packages.sh
This commit is contained in:
@@ -77,9 +77,12 @@ for files in "/scripts" "/etc/cont-init.d"; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $(grep -rnw "$files/" -e 'lastversion') ]]; then
|
if [[ $(grep -rnw "$files/" -e 'lastversion') ]]; then
|
||||||
[ $PACKMANAGER = "apk" ] && apk add --no-cache py3-pip && pip install lastversion
|
[ $PACKMANAGER = "apk" ] && [[ $(pip -V) ]] \
|
||||||
[ $PACKMANAGER = "apt" ] && apt-get install -y python-pip \
|
|| apk add --no-cache py3-pip \
|
||||||
&& pip install lastversion
|
&& pip install lastversion
|
||||||
|
[ $PACKMANAGER = "apt" ] && [[ $(pip -V) ]] \
|
||||||
|
|| apt-get install -y python-pip \
|
||||||
|
&& pip install lastversion
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user