master
pan 4 years ago
parent aa752e605f
commit 5f4cce2744
  1. 8
      shell/updateRisk

@ -21,5 +21,13 @@ function run(){
curl $url curl $url
} }
#检查是否正在部署
result=`ps -ef|grep updateRisk|awk 'NR>1{next}{print $1}'`
if [ ! -z $result ]
then
echo '检测到自动部署进程在运行,直接kill掉'
kill -9 $result
fi
run $1 run $1

Loading…
Cancel
Save