From 5f4cce27443ff467d0abf4112823a66bb499bf3f Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 10 Oct 2020 03:26:06 +0800 Subject: [PATCH] init --- shell/updateRisk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shell/updateRisk b/shell/updateRisk index 207ebaa..74d7941 100644 --- a/shell/updateRisk +++ b/shell/updateRisk @@ -21,5 +21,13 @@ function run(){ 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