From 08b5ab8aaab4782cf0ef924010f457a2dfc383b0 Mon Sep 17 00:00:00 2001 From: sunil unnava Date: Wed, 21 Nov 2018 17:07:59 -0500 Subject: remove the unnecessary code Issue-ID: DMAAP-888 Change-Id: I8264df87c8dda093e121aaef38aa68262ec74cd5 Signed-off-by: sunil unnava --- src/main/docker/scripts/start-zookeeper | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/main/docker/scripts') diff --git a/src/main/docker/scripts/start-zookeeper b/src/main/docker/scripts/start-zookeeper index 25fe466..d3429be 100644 --- a/src/main/docker/scripts/start-zookeeper +++ b/src/main/docker/scripts/start-zookeeper @@ -1,4 +1,3 @@ -USER=`whoami` HOST=`hostname -s` DOMAIN=`hostname -d` LOG_LEVEL=INFO @@ -87,18 +86,16 @@ Starts a ZooKeeper server based on the supplied options. function create_data_dirs() { if [ ! -d $DATA_DIR ]; then mkdir -p $DATA_DIR - chown -R $USER:$USER $DATA_DIR fi if [ ! -d $DATA_LOG_DIR ]; then mkdir -p $DATA_LOG_DIR - chown -R $USER:USER $DATA_LOG_DIR fi if [ ! -d $LOG_DIR ]; then mkdir -p $LOG_DIR - chown -R $USER:$USER $LOG_DIR fi + if [ ! -f $ID_FILE ] && [ $SERVERS -gt 1 ]; then echo $MY_ID >> $ID_FILE fi -- cgit 1.2.3-korg