diff --git a/scripts/update/ubuntu.sh b/scripts/update/ubuntu.sh index af05bd4d7..83e8e3dab 100644 --- a/scripts/update/ubuntu.sh +++ b/scripts/update/ubuntu.sh @@ -37,11 +37,17 @@ fi -sh /etc/init.d/mw stop && rm -rf /www/server/mdserver-web/scripts/init.d/mw && rm -rf /etc/init.d/mw +if [ -f /etc/init.d/mw ];then + sh /etc/init.d/mw stop && rm -rf /www/server/mdserver-web/scripts/init.d/mw && rm -rf /etc/init.d/mw +fi echo -e "stop mw" isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'` -port=$(cat /www/server/mdserver-web/data/port.pl) +port=7200 + +if [ -f /www/server/mdserver-web/data/port.pl ];then + port=$(cat /www/server/mdserver-web/data/port.pl) +fi n=0 while [[ "$isStart" != "" ]]; do