Fix apk path

This commit is contained in:
TheSpad 2022-07-29 17:23:40 +01:00
parent 590130ad99
commit e76811827f
No known key found for this signature in database
GPG key ID: 08F06191F4587860

View file

@ -7,7 +7,7 @@ if [ -f "/mod-repo-packages-to-install.list" ]; then
apt-get update
apt-get install -y --no-install-recommends \
$(cat /mod-repo-packages-to-install.list)
elif [ -f /usr/bin/apk ]; then
elif [ -f /sbin/apk ]; then
apk add --no-cache \
$(cat /mod-repo-packages-to-install.list)
fi
@ -20,7 +20,7 @@ if [ -f "/mod-pip-packages-to-install.list" ]; then
python3 -m pip install -U pip wheel setuptools
if [ -f /usr/bin/apt ]; then
PIP_ARGS="-f https://wheel-index.linuxserver.io/ubuntu/"
elif [ -f /usr/bin/apk ]; then
elif [ -f /sbin/apk ]; then
ALPINE_VER=$(grep main /etc/apk/repositories | sed 's|.*alpine/v||' | sed 's|/main.*||')
if [ "${ALPINE_VER}" = "3.14" ]; then
PIP_ARGS="-f https://wheel-index.linuxserver.io/alpine/"