Commit be47a711 authored by QM's avatar QM

fix chain33Host ip

parent 9d42517b
...@@ -315,7 +315,7 @@ function updata_relayer_toml() { ...@@ -315,7 +315,7 @@ function updata_relayer_toml() {
local maturityDegree=${2} local maturityDegree=${2}
local file=${3} local file=${3}
local chain33Host=$(docker inspect "${NODE3}" | jq ".[].NetworkSettings.IPAddress" | sed 's/\"//g') local chain33Host=$(docker inspect "${NODE3}" | jq ".[].NetworkSettings.Networks.${PROJ}_default.IPAddress" | sed 's/\"//g')
if [[ ${chain33Host} == "" ]]; then if [[ ${chain33Host} == "" ]]; then
echo -e "${RED}chain33Host is empty${NOC}" echo -e "${RED}chain33Host is empty${NOC}"
exit 1 exit 1
......
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