summaryrefslogtreecommitdiffstats
path: root/src/main/docker/scripts/start-zookeeper.sh
diff options
context:
space:
mode:
authorsunil unnava <sunil.unnava@att.com>2018-11-29 15:23:25 -0500
committersunil unnava <sunil.unnava@att.com>2018-11-29 15:23:40 -0500
commit4a49829ddac71f1817c03425dd6efd8c4b7b07a5 (patch)
treeb7dc38e86d010ec1316dca617e614b62a7ce9c67 /src/main/docker/scripts/start-zookeeper.sh
parenta4256a3493fee31d78435ed014f78e19fe4e6d18 (diff)
Added docker entry point
Issue-ID: DMAAP-888 Change-Id: I962ef0a14ac946c39f632051d5a352b368b68910 Signed-off-by: sunil unnava <sunil.unnava@att.com>
Diffstat (limited to 'src/main/docker/scripts/start-zookeeper.sh')
-rw-r--r--src/main/docker/scripts/start-zookeeper.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/docker/scripts/start-zookeeper.sh b/src/main/docker/scripts/start-zookeeper.sh
index e80484f..3765be8 100644
--- a/src/main/docker/scripts/start-zookeeper.sh
+++ b/src/main/docker/scripts/start-zookeeper.sh
@@ -67,10 +67,10 @@ function validate_env() {
echo "ZK_PURGE_INTERVAL=$ZK_PURGE_INTERVAL"
echo "ZK_PRE_ALLOC_SIZE=$ZK_PRE_ALLOC_SIZE"
- if [ $ZK_REPLICAS -gt 1 ] then
+ if [ $ZK_REPLICAS -gt 1 ]; then
echo "ENSEMBLE"
print_servers
- fi
+ fi
echo "Environment validation successful"
}
@@ -119,7 +119,7 @@ function create_data_dirs() {
if [ $ZK_REPLICAS -gt 1 ] && [ ! -f $ID_FILE]; then
echo $MY_ID >> $ID_FILE
- fi
+ fi
echo "Created ZooKeeper data directories and set permissions in $ZK_DATA_DIR"
}