From: sunil unnava Date: Thu, 29 Nov 2018 21:35:19 +0000 (-0500) Subject: fix the typo X-Git-Tag: 1.0.0~1 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=76a5649489d58378ebd8fb869057a39f0bd5acc3;p=dmaap%2Fzookeeper.git fix the typo Issue-ID: DMAAP-888 Change-Id: Iba8ee407b69866ea4ab5feb4f00696d16a14a9fc Signed-off-by: sunil unnava --- diff --git a/src/main/docker/scripts/start-zookeeper.sh b/src/main/docker/scripts/start-zookeeper.sh index 6feb538..e2f3f09 100644 --- a/src/main/docker/scripts/start-zookeeper.sh +++ b/src/main/docker/scripts/start-zookeeper.sh @@ -116,11 +116,12 @@ function create_data_dirs() { mkdir -p $ZK_LOG_DIR chown -R $ZK_USER:$ZK_USER $ZK_LOG_DIR fi - - if [ $ZK_REPLICAS -gt 1 ] && [ ! -f $ID_FILE]; then + + if [ ! -f $ID_FILE ] && [ $ZK_REPLICAS -gt 1 ]; then echo $MY_ID >> $ID_FILE fi + echo "Created ZooKeeper data directories and set permissions in $ZK_DATA_DIR" }