Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
check network name variable (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnkolegov authored Sep 27, 2023
1 parent f28efaa commit 10c7a29
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions infra/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ if [ $# -ne 1 ]; then
exit 1
fi

if [ -z ${NETWORK_NAME} ]; then
echo "NETWORK_NAME variable is not set";
exit 1
fi

export NETWORK_NAME

PORT1=26656
PORT2=26657
PORT3=8545
Expand All @@ -27,8 +34,6 @@ if [ "$1" == "start" ]; then
docker network create --subnet 192.167.10.0/16 ${NETWORK_NAME}
fi

export NETWORK_NAME=${NETWORK_NAME}

for i in $(seq 0 3); do
export NODE_ID=${i}
export PORT1
Expand Down

0 comments on commit 10c7a29

Please sign in to comment.