Ensure that /var/lib/zookeeper is owned by user

TrivialFix

Change-Id: I8e4ede8d9867393f066cb1748247245855a4fdae
This commit is contained in:
Michal Rostecki 2016-02-16 00:41:45 +01:00
parent 84f43146dc
commit 2b45dc47de

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/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 sudo chown zookeeper: /var/lib/zookeeper
exit 0
fi fi