Differentiate ubuntu & debian for pip options

This commit is contained in:
TheSpad 2023-05-16 14:59:55 +01:00
parent b84783b681
commit 8b54e5638e
No known key found for this signature in database
GPG Key ID: 08F06191F4587860

View File

@ -48,7 +48,7 @@ if [[ -f "/mod-pip-packages-to-install.list" ]]; then
fi
python3 -m pip install -U pip wheel setuptools
PIP_ARGS=()
if [[ -f /usr/bin/apt ]]; then
if [[ -f /usr/bin/apt ]] && grep -q 'ID=ubuntu' /etc/os-release; then
PIP_ARGS+=("-f" "https://wheel-index.linuxserver.io/ubuntu/")
elif [[ -f /sbin/apk ]]; then
ALPINE_VER=$(grep main /etc/apk/repositories | sed 's|.*alpine/v||' | sed 's|/main.*||')