From 09316ecb58f2ae55bc56093c9dac7cd6d4472cef Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 25 Jun 2022 23:28:34 +0800 Subject: [PATCH] Update centos.sh --- scripts/update/centos.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/update/centos.sh b/scripts/update/centos.sh index 3caaac745..135af712d 100755 --- a/scripts/update/centos.sh +++ b/scripts/update/centos.sh @@ -22,10 +22,7 @@ if [ ! -f /usr/local/bin/pip3 ];then python3 -m pip install --upgrade pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple fi -#venv -if [ ! -f /www/server/mdserver-web/bin/activate ];then - cd /www/server/mdserver-web && python3 -m venv . -fi + pip install --upgrade pip @@ -38,7 +35,9 @@ pip3 install flask-caching==1.10.1 pip3 install psutil==5.9.1 pip3 install pymongo -if [ -f /www/server/mdserver-web/bin/activate ];then +#venv +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 pip install --upgrade pip pip3 install -r /www/server/mdserver-web/requirements.txt