From b3ca3ff2cd934da5f73221a0560c4e22673e5890 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 14 Jun 2022 22:40:31 +0800 Subject: [PATCH] Update ubuntu.sh --- scripts/install/ubuntu.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/install/ubuntu.sh b/scripts/install/ubuntu.sh index 3c2291715..05522886d 100644 --- a/scripts/install/ubuntu.sh +++ b/scripts/install/ubuntu.sh @@ -65,13 +65,15 @@ if [ ! -d /www/server/mdserver-web ];then rm -rf /tmp/mdserver-web-master fi -if [ ! -f /usr/local/bin/pip3 ];then - python3 -m pip install --upgrade pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple -fi cd /www/server/mdserver-web/scripts && bash lib.sh chmod 755 /www/server/mdserver-web/data + +if [ ! -f /usr/local/bin/pip3 ];then + python3 -m pip install --upgrade pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple +fi + cd /www/server/mdserver-web && pip3 install -r /www/server/mdserver-web/requirements.txt pip install --upgrade pip