Add workaround for openstack-sahara-ui plugin

The openstack-sahara-ui package in RDO doesn't include the python plugin
scripts in its enabled directory as they are moved rather than copied
into /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/.

This change copies the plugins into the sahara_dashboard python package
directory before they are removed from /usr/share.

Change-Id: Ifbaff505fe3b415e4598ee1a223fb823d2d71b43
Closes-Bug: #1698462
This commit is contained in:
Mark Goddard 2017-06-05 19:11:46 +01:00
parent 2627e3c009
commit 21f042b7f7
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \
&& chown -R apache: /usr/share/openstack-dashboard/static \
&& 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/openstack_dashboard/local/enabled/_18*.py* /usr/lib/python2.7/site-packages/sahara_dashboard/enabled/ \
&& rm -f /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/?[^_]*.py* \
&& rm -f /usr/lib/python2.7/site-packages/openstack_dashboard/local/enabled/?[^_]*.py* \
&& (cd /usr/lib/python2.7/site-packages/horizon && /usr/bin/python /usr/bin/manage.py compilemessages) \