kolla-ansible/docker/zookeeper/extend_start.sh
Michal Rostecki 2b45dc47de Ensure that /var/lib/zookeeper is owned by user
TrivialFix

Change-Id: I8e4ede8d9867393f066cb1748247245855a4fdae
2016-02-16 00:41:45 +01:00

7 lines
197 B
Bash

#!/bin/bash
# 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
fi