From 7b0cbbd15ea503fafdd966ebccc1ee7786e8499a Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 13 Jun 2022 18:16:28 +0800 Subject: [PATCH] Update ubuntu.sh --- scripts/update/ubuntu.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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