From 2b45dc47de87573f0faa9c6de793a9a55db18b65 Mon Sep 17 00:00:00 2001 From: Michal Rostecki Date: Tue, 16 Feb 2016 00:41:45 +0100 Subject: [PATCH] Ensure that /var/lib/zookeeper is owned by user TrivialFix Change-Id: I8e4ede8d9867393f066cb1748247245855a4fdae --- docker/zookeeper/extend_start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/zookeeper/extend_start.sh b/docker/zookeeper/extend_start.sh index 4ea18ccbbc..5bca443b1c 100644 --- a/docker/zookeeper/extend_start.sh +++ b/docker/zookeeper/extend_start.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then +# Only update permissions if permissions need to be updated +if [[ $(stat -c %U:%G /var/lib/zookeeper) != "zookeeper:zookeeper" ]]; then sudo chown zookeeper: /var/lib/zookeeper - exit 0 fi