From 540f4e27b7938cbaeee558a82d4bc159712a9b70 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 14 Jun 2022 18:40:34 +0800 Subject: [PATCH] up --- scripts/install/ubuntu.sh | 7 +++---- scripts/update/ubuntu.sh | 6 ++++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/install/ubuntu.sh b/scripts/install/ubuntu.sh index fcedc9041..a9472da5a 100644 --- a/scripts/install/ubuntu.sh +++ b/scripts/install/ubuntu.sh @@ -65,18 +65,16 @@ if [ ! -d /www/server/mdserver-web ];then rm -rf /tmp/mdserver-web-master fi - -cd /www/server/mdserver-web && python3 -m venv . 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 +cd /www/server/mdserver-web && python3 -m venv . + if [ -f /www/server/mdserver-web/bin/activate ];then pip install --upgrade pip pip install --upgrade setuptools @@ -88,6 +86,7 @@ fi pip3 install gunicorn==20.1.0 pip3 install gevent==21.1.2 pip3 install gevent-websocket==0.10.1 +pip3 install gevent-websocket==0.10.1 pip3 install requests==2.20.0 pip3 install flask-caching>=1.10.1 pip3 install flask-socketio==5.2.0 diff --git a/scripts/update/ubuntu.sh b/scripts/update/ubuntu.sh index 5515c9114..b97b4d0c1 100644 --- a/scripts/update/ubuntu.sh +++ b/scripts/update/ubuntu.sh @@ -17,14 +17,16 @@ cd /www/server/mdserver-web/scripts && bash lib.sh chmod 755 /www/server/mdserver-web/data -#venv -cd /www/server/mdserver-web && python3 -m venv . + if [ ! -f /usr/local/bin/pip3 ];then python3 -m pip install --upgrade pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple fi +#venv +cd /www/server/mdserver-web && python3 -m venv . + if [ -f /www/server/mdserver-web/bin/activate ];then pip install --upgrade pip pip install --upgrade setuptools