mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-13 07:01:23 -04:00
Differentiate ubuntu & debian for pip options
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ if [[ -f "/mod-pip-packages-to-install.list" ]]; then
|
|||||||
fi
|
fi
|
||||||
python3 -m pip install -U pip wheel setuptools
|
python3 -m pip install -U pip wheel setuptools
|
||||||
PIP_ARGS=()
|
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/")
|
PIP_ARGS+=("-f" "https://wheel-index.linuxserver.io/ubuntu/")
|
||||||
elif [[ -f /sbin/apk ]]; then
|
elif [[ -f /sbin/apk ]]; then
|
||||||
ALPINE_VER=$(grep main /etc/apk/repositories | sed 's|.*alpine/v||' | sed 's|/main.*||')
|
ALPINE_VER=$(grep main /etc/apk/repositories | sed 's|.*alpine/v||' | sed 's|/main.*||')
|
||||||
|
|||||||
Reference in New Issue
Block a user