diff options
author | sunil unnava <sunil.unnava@att.com> | 2018-11-29 16:03:46 -0500 |
---|---|---|
committer | sunil unnava <sunil.unnava@att.com> | 2018-11-29 16:04:00 -0500 |
commit | 183bf873f13f967e037c00f40bfbf6ab7e9437fa (patch) | |
tree | 36566a3d2032b4b130cd8fc7647b5073d15f5495 /src/main/docker/scripts/start-zookeeper.sh | |
parent | 1de4300ccc824d3003930bf70e202fecfa530d16 (diff) |
zookeeper start script changes
Issue-ID: DMAAP-888
Change-Id: I9534db830271636c574c920e03c2e71ed42a8e87
Signed-off-by: sunil unnava <sunil.unnava@att.com>
Diffstat (limited to 'src/main/docker/scripts/start-zookeeper.sh')
-rw-r--r-- | src/main/docker/scripts/start-zookeeper.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/docker/scripts/start-zookeeper.sh b/src/main/docker/scripts/start-zookeeper.sh index 148ecc8..6feb538 100644 --- a/src/main/docker/scripts/start-zookeeper.sh +++ b/src/main/docker/scripts/start-zookeeper.sh @@ -36,9 +36,8 @@ function print_servers() { function validate_env() { echo "Validating environment" - - if[ $HOST =~ (.*)-([0-9]+)$ ]]; then + if [[ $HOST =~ (.*)-([0-9]+)$ ]]; then NAME=${BASH_REMATCH[1]} ORD=${BASH_REMATCH[2]} MY_ID=$((ORD+1)) @@ -46,6 +45,7 @@ function validate_env() { else echo "Failed to extract ordinal from hostname $HOST" fi + echo "ZK_REPLICAS=$ZK_REPLICAS" |