summaryrefslogtreecommitdiffstats
path: root/src/main/docker/scripts
diff options
context:
space:
mode:
authorsunil unnava <sunil.unnava@att.com>2018-11-26 16:35:26 -0500
committersunil unnava <sunil.unnava@att.com>2018-11-26 16:35:41 -0500
commit43d180bbe78497b87dcdbbcf4056fc47f5c59866 (patch)
tree2d85f1ed26adcb8f40692e40ced2a77e0d6f7f02 /src/main/docker/scripts
parent94d2769393df3968b82657f07ae88854c0a74809 (diff)
Update Dockerfile
Issue-ID: DMAAP-888 Change-Id: Ica3abebdb0b1c44f9cd9903466ad72bedf3ebe2f Signed-off-by: sunil unnava <sunil.unnava@att.com>
Diffstat (limited to 'src/main/docker/scripts')
-rw-r--r--src/main/docker/scripts/start-zookeeper.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/docker/scripts/start-zookeeper.sh b/src/main/docker/scripts/start-zookeeper.sh
index 5222c78..9ae7a76 100644
--- a/src/main/docker/scripts/start-zookeeper.sh
+++ b/src/main/docker/scripts/start-zookeeper.sh
@@ -116,8 +116,10 @@ function create_data_dirs() {
chown -R $ZK_USER:$ZK_USER $ZK_LOG_DIR
fi
+ if [ $ZK_REPLICAS -gt 1 ]; then
echo $MY_ID >> $ID_FILE
cat $ID_FILE
+ fi
echo "Created ZooKeeper data directories and set permissions in $ZK_DATA_DIR"
}