|
|
@ -22,15 +22,13 @@ PATH=$PATH:$mw_path/bin |
|
|
|
|
|
|
|
|
|
|
|
if [ -f $mw_path/bin/activate ];then |
|
|
|
if [ -f $mw_path/bin/activate ];then |
|
|
|
source $mw_path/bin/activate |
|
|
|
source $mw_path/bin/activate |
|
|
|
else |
|
|
|
|
|
|
|
echo "" |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
mw_start_panel() |
|
|
|
mw_start_panel() |
|
|
|
{ |
|
|
|
{ |
|
|
|
isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'` |
|
|
|
isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'` |
|
|
|
if [ "$isStart" == '' ];then |
|
|
|
if [ "$isStart" == '' ];then |
|
|
|
echo -e "Starting mw-panel... \c" |
|
|
|
echo -e "starting mw-panel... \c" |
|
|
|
cd $mw_path && gunicorn -c setting.py app:app |
|
|
|
cd $mw_path && gunicorn -c setting.py app:app |
|
|
|
port=$(cat ${mw_path}/data/port.pl) |
|
|
|
port=$(cat ${mw_path}/data/port.pl) |
|
|
|
isStart="" |
|
|
|
isStart="" |
|
|
|