mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:59:25 +08:00
up
This commit is contained in:
@@ -64,6 +64,25 @@ cd /www/server/mdserver-web/scripts && bash lib.sh
|
||||
chmod 755 /www/server/mdserver-web/data
|
||||
|
||||
|
||||
VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
|
||||
|
||||
|
||||
if [ "${VERSION_ID}" == "22.04" ];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
|
||||
else
|
||||
cd /www/server/mdserver-web && source /www/server/mdserver-web/bin/activate
|
||||
fi
|
||||
|
||||
if [ "${VERSION_ID}" == "22.04" ];then
|
||||
pip3 install -U --force-reinstall --no-binary :all: gevent
|
||||
fi
|
||||
|
||||
|
||||
|
||||
cd /www/server/mdserver-web && ./cli.sh start
|
||||
isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'`
|
||||
|
||||
+6
-6
@@ -360,9 +360,9 @@ pip3 install psutil
|
||||
pip3 install flask-socketio==5.2.0
|
||||
pip3 install mysqlclient
|
||||
|
||||
if [ "${OSNAME}" == "ubuntu" ] && [ "${VERSION_ID}" == "22.04" ];then
|
||||
pip3 install -U --force-reinstall --no-binary :all: gevent
|
||||
fi
|
||||
# if [ "${OSNAME}" == "ubuntu" ] && [ "${VERSION_ID}" == "22.04" ];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 .
|
||||
@@ -384,9 +384,9 @@ pip3 install psutil
|
||||
pip3 install flask-socketio==5.2.0
|
||||
pip3 install mysqlclient
|
||||
|
||||
if [ "${OSNAME}" == "ubuntu" ] && [ "${VERSION_ID}" == "22.04" ];then
|
||||
pip3 install -U --force-reinstall --no-binary :all: gevent
|
||||
fi
|
||||
# if [ "${OSNAME}" == "ubuntu" ] && [ "${VERSION_ID}" == "22.04" ];then
|
||||
# pip3 install -U --force-reinstall --no-binary :all: gevent
|
||||
# fi
|
||||
|
||||
##### common start #####
|
||||
|
||||
|
||||
Reference in New Issue
Block a user