From: sunil unnava Date: Thu, 29 Nov 2018 20:46:36 +0000 (-0500) Subject: zookeeper start script changes X-Git-Tag: 1.0.0~3 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F86%2F73986%2F1;p=dmaap%2Fzookeeper.git zookeeper start script changes Issue-ID: DMAAP-888 Change-Id: I6accb4422c82ca47e19e181946d7564d5d4026da Signed-off-by: sunil unnava --- diff --git a/src/main/docker/scripts/start-zookeeper.sh b/src/main/docker/scripts/start-zookeeper.sh index 3765be8..148ecc8 100644 --- a/src/main/docker/scripts/start-zookeeper.sh +++ b/src/main/docker/scripts/start-zookeeper.sh @@ -37,7 +37,7 @@ function print_servers() { function validate_env() { echo "Validating environment" - if [ $ZK_REPLICAS -gt 1] && [[ $HOST =~ (.*)-([0-9]+)$ ]]; then + if[ $HOST =~ (.*)-([0-9]+)$ ]]; then NAME=${BASH_REMATCH[1]} ORD=${BASH_REMATCH[2]}