Remove bootstrap in etcd
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
This commit is contained in:
parent
a3ab3f2557
commit
11708962aa
@ -8,9 +8,6 @@ if [[ $(stat -c %a /var/log/kolla/etcd) != "755" ]]; then
|
|||||||
chmod 755 /var/log/kolla/etcd
|
chmod 755 /var/log/kolla/etcd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
if [[ $(stat -c %U /var/lib/etcd/) != "etcd" ]]; then
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
|
||||||
sudo chown etcd: /var/lib/etcd/
|
sudo chown etcd: /var/lib/etcd/
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user