Update centos.sh

This commit is contained in:
midoks 2022-06-21 14:12:31 +08:00
parent 90fc96c04e
commit 461a9582df
1 changed files with 8 additions and 0 deletions

View File

@ -82,10 +82,16 @@ if [ ! -f /usr/local/bin/pip3 ];then
fi
echo "start install lib"
cd /www/server/mdserver-web/scripts && bash lib.sh
echo "end install lib"
chmod 755 /www/server/mdserver-web/data
echo "start install python lib"
pip install --upgrade pip
if [ ! -f /www/server/mdserver-web/bin/activate ];then
cd /www/server/mdserver-web && python3 -m venv .
@ -115,6 +121,8 @@ else
pip3 install pymongo
fi
echo "end install python lib"
cd /www/server/mdserver-web && ./cli.sh start
sleep 5