From dafb7b62b06a602057a72c1b657173ea93bd064e Mon Sep 17 00:00:00 2001 From: Dmitry Burmistrov <dburmistrov@mirantis.com> Date: Tue, 18 Feb 2014 10:03:34 +0400 Subject: [PATCH] Change ownership for some folders according to OSCI-1074 Change-Id: I0046769f2584ef9df47391352c742fb6058d076e --- debian/openstack-dashboard.postinst | 4 ++++ rpm/SPECS/python-django-horizon.spec | 2 ++ 2 files changed, 6 insertions(+) diff --git a/debian/openstack-dashboard.postinst b/debian/openstack-dashboard.postinst index 7e75670..d05528f 100755 --- a/debian/openstack-dashboard.postinst +++ b/debian/openstack-dashboard.postinst @@ -58,6 +58,10 @@ if [ "$1" = "configure" ]; then fi chown -R horizon:horizon /var/lib/openstack-dashboard fi + + if [ -d /usr/share/openstack-dashboard ] ; then + chown -R horizon:horizon /usr/share/openstack-dashboard + fi fi #DEBHELPER# diff --git a/rpm/SPECS/python-django-horizon.spec b/rpm/SPECS/python-django-horizon.spec index a8f3193..2db5e7e 100644 --- a/rpm/SPECS/python-django-horizon.spec +++ b/rpm/SPECS/python-django-horizon.spec @@ -293,7 +293,9 @@ mkdir -p %{buildroot}%{_sharedstatedir}/openstack-dashboard %{python_sitelib}/horizon/workflows %{python_sitelib}/*.egg-info +%defattr(-, apache, apache) %files -n openstack-dashboard -f dashboard.lang +%defattr(-, apache, apache) %dir %{_datadir}/openstack-dashboard/ %{_datadir}/openstack-dashboard/*.py* %{_datadir}/openstack-dashboard/static -- 2.45.2