summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorPradeep Kilambi <pkilambi@redhat.com>2017-03-02 11:53:26 -0500
committerPradeep Kilambi <pkilambi@redhat.com>2017-03-03 12:58:37 +0000
commit9bbd43b3e777dda0af430699cc840e866f868935 (patch)
tree57e72b309580d0cf55d398cba40e398c6fc1d869 /docker
parent941ddf800348ad858d4744d97f910cfb8e94d982 (diff)
Fix httpd dir create to not error if exists
In cases where /var/log/httpd already exists, this exits with error code 1. $ sudo docker logs keystone-init-log mkdir: cannot create directory '/var/log/httpd': File exists Change-Id: I62bf08d9fc9e02d5f3016bd14bb0a090b76ac837
Diffstat (limited to 'docker')
-rw-r--r--docker/services/keystone.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/services/keystone.yaml b/docker/services/keystone.yaml
index 644326e0..e09fd769 100644
--- a/docker/services/keystone.yaml
+++ b/docker/services/keystone.yaml
@@ -109,7 +109,7 @@ outputs:
start_order: 0
image: *keystone_image
user: root
- command: ['/bin/bash', '-c', 'mkdir /var/log/httpd && mkdir /var/log/keystone && chown keystone:keystone /var/log/keystone']
+ command: ['/bin/bash', '-c', 'mkdir -p /var/log/httpd && mkdir -p /var/log/keystone && chown keystone:keystone /var/log/keystone']
volumes:
- logs:/var/log
keystone_db_sync: