Update lib.sh

This commit is contained in:
dami
2026-01-20 12:12:27 +08:00
parent 4f74a770af
commit 555c326b0c
+6 -2
View File
@@ -66,7 +66,7 @@ fi
PIPSRC="https://pypi.python.org/simple"
if [ "$LOCAL_ADDR" != "common" ];then
PIPSRC="https://pypi.tuna.tsinghua.edu.cn/simple/"
PIPSRC="https://pypi.tuna.tsinghua.edu.cn/simple"
fi
echo "local:${LOCAL_ADDR}"
@@ -97,7 +97,11 @@ fi
pip3 install --upgrade pip -i $PIPSRC
pip3 install --upgrade setuptools -i $PIPSRC
# --no-cache-dir
# repeated attempts
if [ "$LOCAL_ADDR" != "common" ];then
cd /www/server/mdserver-web && pip3 install -r /www/server/mdserver-web/requirements.txt
fi
cd /www/server/mdserver-web && pip3 install -r /www/server/mdserver-web/requirements.txt -i $PIPSRC