11708962aa
Doing a chown during bootstrap is useles. Is better do it during cotainer startup to ensure always have proper permissions. Change-Id: I9c6c876773288c2f951966498db0ff8af090ac20 Closes-Bug: #1697699
14 lines
333 B
Bash
14 lines
333 B
Bash
#!/bin/bash
|
|
|
|
# Create log directory, with appropriate permissions
|
|
if [[ ! -d "/var/log/kolla/etcd" ]]; then
|
|
mkdir -p /var/log/kolla/etcd
|
|
fi
|
|
if [[ $(stat -c %a /var/log/kolla/etcd) != "755" ]]; then
|
|
chmod 755 /var/log/kolla/etcd
|
|
fi
|
|
|
|
if [[ $(stat -c %U /var/lib/etcd/) != "etcd" ]]; then
|
|
sudo chown etcd: /var/lib/etcd/
|
|
fi
|