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