diff options
Diffstat (limited to 'docker/etcd')
| -rw-r--r-- | docker/etcd/extend_start.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/etcd/extend_start.sh b/docker/etcd/extend_start.sh index 485ee8e2d..718de9ebb 100644 --- a/docker/etcd/extend_start.sh +++ b/docker/etcd/extend_start.sh @@ -1,5 +1,13 @@ #!/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 + # 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 |
