aboutsummaryrefslogtreecommitdiff
path: root/docker/cinder/cinder-api
diff options
context:
space:
mode:
Diffstat (limited to 'docker/cinder/cinder-api')
-rw-r--r--docker/cinder/cinder-api/extend_start.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/docker/cinder/cinder-api/extend_start.sh b/docker/cinder/cinder-api/extend_start.sh
index 176515189..f6e2ddb20 100644
--- a/docker/cinder/cinder-api/extend_start.sh
+++ b/docker/cinder/cinder-api/extend_start.sh
@@ -1,6 +1,13 @@
#!/bin/bash
set -o errexit
+if [[ ! -d "/var/log/kolla/cinder" ]]; then
+ mkdir -p /var/log/kolla/cinder
+fi
+if [[ $(stat -c %a /var/log/kolla/cinder) != "755" ]]; then
+ chmod 755 /var/log/kolla/cinder
+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