mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:39:25 +08:00
Update lib.sh
This commit is contained in:
+6
-2
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user