Skip to content

Commit

Permalink
rename network as zone
Browse files Browse the repository at this point in the history
  • Loading branch information
Shareong committed Jan 7, 2020
1 parent e7c20fb commit c11bd2d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/build_wecross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

counter=0
network=
zone=
ip_array=
rpc_port_array=
p2p_port_array=
Expand Down Expand Up @@ -36,7 +36,7 @@ help()
echo "$1"
cat << EOF
Usage:
-n <network id> [Required] set network ID
-n <zone id> [Required] set zone ID
-l <ip:rpc-port:p2p-port> [Optional] "ip:rpc-port:p2p-port" e.g:"127.0.0.1:8250:25500"
-f <ip list file> [Optional] split by line, every line should be "ip:rpc-port:p2p-port". eg "127.0.0.1:8250:25500"
-c <ca dir> [Optional] dir of existing ca
Expand Down Expand Up @@ -84,7 +84,7 @@ while getopts "o:n:l:f:c:zTh" option;do
router_output=$OPTARG
;;
n)
network=$OPTARG
zone=$OPTARG
;;
l)
use_file=0
Expand All @@ -111,8 +111,8 @@ done

check_params()
{
if [ -z "${network}" ];then
LOG_ERROR "Please set [Network id]"
if [ -z "${zone}" ];then
LOG_ERROR "Please set [zone id]"
help
exit 1
fi
Expand Down Expand Up @@ -185,7 +185,7 @@ gen_conf()
{
cat << EOF > "${1}"
[common]
network = '${network}'
network = '${zone}'
visible = true
[stubs]
Expand Down

0 comments on commit c11bd2d

Please sign in to comment.