Merge "Fix owner of horizon docroot"
This commit is contained in:
commit
265de22e63
@ -9,12 +9,12 @@ RUN yum -y install \
|
|||||||
httpd \
|
httpd \
|
||||||
mod_wsgi \
|
mod_wsgi \
|
||||||
&& yum clean all \
|
&& yum clean all \
|
||||||
&& chown -R apache: /usr/share/openstack-dashboard/static \
|
|
||||||
&& useradd --user-group horizon \
|
&& useradd --user-group horizon \
|
||||||
&& sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \
|
&& 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/openstack_dashboard /usr/lib/python2.7/site-packages/openstack_dashboard \
|
||||||
&& ln -s /usr/share/openstack-dashboard/static /usr/lib/python2.7/site-packages/static \
|
&& 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 \
|
RUN sed -i "s|WEBROOT = '/dashboard/'|WEBROOT = '/'|" /etc/openstack-dashboard/local_settings \
|
||||||
&& cp /usr/share/openstack-dashboard/manage.py /usr/bin/manage.py \
|
&& cp /usr/share/openstack-dashboard/manage.py /usr/bin/manage.py \
|
||||||
|
Loading…
Reference in New Issue
Block a user