diff options
| author | Eduardo Gonzalez <dabarren@gmail.com> | 2017-06-13 16:28:37 +0200 |
|---|---|---|
| committer | Eduardo Gonzalez <dabarren@gmail.com> | 2017-06-13 16:28:37 +0200 |
| commit | 11708962aa3ee3a5e6350ffe32ee9e7792393377 (patch) | |
| tree | 7b359ef3fe5333d8ae691227512afe7e18881a9e /docker/etcd | |
| parent | a3ab3f255785b7c4b761859b06952f3a3184face (diff) | |
| download | kolla-11708962aa3ee3a5e6350ffe32ee9e7792393377.tar.gz kolla-11708962aa3ee3a5e6350ffe32ee9e7792393377.zip | |
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
Diffstat (limited to 'docker/etcd')
| -rw-r--r-- | docker/etcd/extend_start.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/docker/etcd/extend_start.sh b/docker/etcd/extend_start.sh index 718de9ebb..c54023299 100644 --- a/docker/etcd/extend_start.sh +++ b/docker/etcd/extend_start.sh @@ -8,9 +8,6 @@ if [[ $(stat -c %a /var/log/kolla/etcd) != "755" ]]; then chmod 755 /var/log/kolla/etcd fi -# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases -# of the KOLLA_BOOTSTRAP variable being set, including empty. -if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then +if [[ $(stat -c %U /var/lib/etcd/) != "etcd" ]]; then sudo chown etcd: /var/lib/etcd/ - exit 0 fi |
