Ensure that /var/lib/zookeeper is owned by user
TrivialFix Change-Id: I8e4ede8d9867393f066cb1748247245855a4fdae
This commit is contained in:
parent
84f43146dc
commit
2b45dc47de
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user