Commit 44f74a48 authored by vipwzw's avatar vipwzw

auto ci

parent 37f52000
......@@ -102,7 +102,7 @@ function StartRelayerAndDeploy() {
# 修改 relayer.toml 配置文件
updata_relayer_toml "${BridgeRegistry}" ${maturityDegree} "./relayer.toml"
# 重启
start_ebrelayerA
start_ebrelayerA
# start ebrelayer B C D
for name in b c d; do
......
......@@ -15,7 +15,7 @@ NOC='\033[0m'
# 出错退出前拷贝日志文件
function exit_cp_file() {
# shellcheck disable=SC2116
# dirNameFa=$(echo ~)
# dirNameFa=$(echo ~)
dirName="/x2ethereumlogs"
if [ ! -d "${dirName}" ]; then
......@@ -36,7 +36,7 @@ function copyErrLogs() {
if [ -n "$CASE_ERR" ]; then
# /var/lib/jenkins
# shellcheck disable=SC2116
# dirNameFa=$(echo ~)
# dirNameFa=$(echo ~)
dirName="/x2ethereumlogs"
if [ ! -d "${dirName}" ]; then
......@@ -128,14 +128,14 @@ function start_docker_ebrelayer() {
fi
# 后台启动程序
docker exec "$1" nohup "${2}" > "${3}" 2>&1 &
docker exec "$1" nohup "${2}" >"${3}" 2>&1 &
sleep 2
# shellcheck disable=SC2009
pid=$(docker exec "$1" ps -ef | grep "$2" | grep -v 'grep' | awk '{print $2}')
local count=0
while [ "${pid}" == "" ]; do
docker exec "$1" nohup "${2}" > "${3}" 2>&1 &
docker exec "$1" nohup "${2}" >"${3}" 2>&1 &
sleep 2
count=$((count + 1))
......
......@@ -6,4 +6,4 @@ set +e
while [ 1 == 1 ]; do
sleep 100
done
\ No newline at end of file
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment