Update ubuntu.sh

This commit is contained in:
midoks 2022-06-10 17:18:56 +08:00
parent 08e4d273b8
commit cf0ebaa0d7
1 changed files with 4 additions and 1 deletions

View File

@ -71,7 +71,8 @@ if [ ! -d /www/server/mdserver-web ];then
rm -rf /tmp/mdserver-web-master
fi
apt install python3-pip
apt install -y python3-pip
apt-get install -y python3-venv
if [ ! -f /usr/local/bin/pip3 ];then
python3 -m pip install --upgrade pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple
@ -88,6 +89,8 @@ else
cd /www/server/mdserver-web && pip3 install -r /www/server/mdserver-web/requirements.txt
fi
cd /www/server/mdserver-web && ./cli.sh start
sleep 5