From 0a6336619065b525cdf46c698889a6042d3d723e Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 30 Jun 2022 10:50:47 +0800 Subject: [PATCH] =?UTF-8?q?ubuntu22=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/lib.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/lib.sh b/scripts/lib.sh index b7364666d..ca211991d 100755 --- a/scripts/lib.sh +++ b/scripts/lib.sh @@ -357,6 +357,10 @@ pip3 install psutil pip3 install flask-socketio==5.2.0 pip3 install mysqlclient +if [ "$OSNAME" == "ubuntu" ];then + pip3 install -U --force-reinstall --no-binary :all: gevent +fi + if [ ! -f /www/server/mdserver-web/bin/activate ];then cd /www/server/mdserver-web && python3 -m venv . cd /www/server/mdserver-web && source /www/server/mdserver-web/bin/activate @@ -380,6 +384,11 @@ pip3 install flask-socketio==5.2.0 pip3 install mysqlclient +if [ "$OSNAME" == "ubuntu" ];then + pip3 install -U --force-reinstall --no-binary :all: gevent +fi + + ##### common start #####