diff options
author | 2018-11-29 16:35:19 -0500 | |
---|---|---|
committer | 2018-11-29 16:35:35 -0500 | |
commit | 76a5649489d58378ebd8fb869057a39f0bd5acc3 (patch) | |
tree | 32c8a649292dcf7e600530dd4b81a5be0249375e /src/main/docker/scripts | |
parent | 183bf873f13f967e037c00f40bfbf6ab7e9437fa (diff) |
fix the typo
Issue-ID: DMAAP-888
Change-Id: Iba8ee407b69866ea4ab5feb4f00696d16a14a9fc
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.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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" } |