From 9f604456be6efa7bda3973bf3fdb9019ec350297 Mon Sep 17 00:00:00 2001 From: Proskurin Kirill Date: Fri, 11 Dec 2015 19:16:25 +0300 Subject: [PATCH] Fix owner of horizon docroot Horizon starts WSGI deamon from user "horizon", its docroot has "root" user. Change-Id: Iac424a88a747772a37b2ff2ae94f302a988f7201 Closes-Bug: 1525296 --- docker/horizon/Dockerfile.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/horizon/Dockerfile.j2 b/docker/horizon/Dockerfile.j2 index f9e5a7fab2..55d258cd46 100644 --- a/docker/horizon/Dockerfile.j2 +++ b/docker/horizon/Dockerfile.j2 @@ -9,12 +9,12 @@ RUN yum -y install \ httpd \ mod_wsgi \ && yum clean all \ - && chown -R apache: /usr/share/openstack-dashboard/static \ && useradd --user-group horizon \ && sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \ && ln -s /usr/share/openstack-dashboard/openstack_dashboard /usr/lib/python2.7/site-packages/openstack_dashboard \ && ln -s /usr/share/openstack-dashboard/static /usr/lib/python2.7/site-packages/static \ - && chown -R horizon: /etc/openstack-dashboard + && chown -R horizon: /etc/openstack-dashboard /usr/share/openstack-dashboard \ + && chown -R apache: /usr/share/openstack-dashboard/static RUN sed -i "s|WEBROOT = '/dashboard/'|WEBROOT = '/'|" /etc/openstack-dashboard/local_settings \ && cp /usr/share/openstack-dashboard/manage.py /usr/bin/manage.py \