增加openresty

master
pan 4 years ago
parent 4d05771a4f
commit d3573ee990
  1. 4
      shell/killNode
  2. 2
      shell/updateRisk

@ -10,12 +10,14 @@ then
echo "成功杀死进程:$p" echo "成功杀死进程:$p"
rm -f run.pid rm -f run.pid
else else
echo "无法杀死进程:$p" echo "无法杀死进程:$p,重启$1失败"
result=0 result=0
fi fi
fi fi
if [ $result -eq 1 ] if [ $result -eq 1 ]
then then
echo "执行$1的运行脚本"
./run.sh ./run.sh
echo "执行$1的运行脚本返回结果:$?"
fi fi

@ -23,7 +23,7 @@ function run(){
then then
git clone git@gogs.kirito.cool:panqihua/$1.git git clone git@gogs.kirito.cool:panqihua/$1.git
fi fi
cd $1 && git reset --hard && git pull && yarn && chmod +x run.sh && killNode cd $1 && git reset --hard && git pull && yarn && chmod +x run.sh && killNode $1
} }
run $1 run $1

Loading…
Cancel
Save