diff --git a/scripts/install.sh b/scripts/install.sh index 49827b7e4..426888d1f 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -87,14 +87,14 @@ cd /www/server/mdserver-web && bash scripts/install/${OSNAME}.sh cd /www/server/mdserver-web && bash cli.sh start isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'` n=0 -while [[ ! -f /etc/rc.d/init.d/mw ]]; +while [ ! -f /etc/rc.d/init.d/mw ]; do echo -e ".\c" sleep 1 let n+=1 if [ $n -gt 20 ];then echo -e "start mw fail" - exit 1 + exit 1 fi done diff --git a/scripts/install_dev.sh b/scripts/install_dev.sh index 3c3113c37..bdf44b80f 100755 --- a/scripts/install_dev.sh +++ b/scripts/install_dev.sh @@ -77,7 +77,7 @@ cd /www/server/mdserver-web && bash scripts/install/${OSNAME}.sh cd /www/server/mdserver-web && bash cli.sh start isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'` n=0 -while [[ ! -f /etc/rc.d/init.d/mw ]]; +while [ ! -f /etc/rc.d/init.d/mw ]; do echo -e ".\c" sleep 1