diff options
author | 2018-11-21 17:07:59 -0500 | |
---|---|---|
committer | 2018-11-21 17:08:17 -0500 | |
commit | 08b5ab8aaab4782cf0ef924010f457a2dfc383b0 (patch) | |
tree | 90c5bb5acc4f0e5ac888e79ab494f4a572a5d6ac /src/main/docker/scripts | |
parent | 97d04ee738fca52d34b83a144a13dbeb1d1820c1 (diff) |
remove the unnecessary code
Issue-ID: DMAAP-888
Change-Id: I8264df87c8dda093e121aaef38aa68262ec74cd5
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 | 5 |
1 files changed, 1 insertions, 4 deletions
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 |