Code Review
/
dmaap
/
zookeeper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
183bf87
)
fix the typo
94/73994/1
author
sunil unnava
<sunil.unnava@att.com>
Thu, 29 Nov 2018 21:35:19 +0000
(16:35 -0500)
committer
sunil unnava
<sunil.unnava@att.com>
Thu, 29 Nov 2018 21:35:35 +0000
(16:35 -0500)
Issue-ID: DMAAP-888
Change-Id: Iba8ee407b69866ea4ab5feb4f00696d16a14a9fc
Signed-off-by: sunil unnava <sunil.unnava@att.com>
src/main/docker/scripts/start-zookeeper.sh
patch
|
blob
|
history
diff --git
a/src/main/docker/scripts/start-zookeeper.sh
b/src/main/docker/scripts/start-zookeeper.sh
index
6feb538
..
e2f3f09
100644
(file)
--- 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"
}