From: Dmitry Burmistrov Date: Tue, 18 Feb 2014 06:03:34 +0000 (+0400) Subject: Change ownership for some folders according to OSCI-1074 X-Git-Tag: 2014.1~11 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=dafb7b62b06a602057a72c1b657173ea93bd064e;p=openstack-build%2Fhorizon-build.git Change ownership for some folders according to OSCI-1074 Change-Id: I0046769f2584ef9df47391352c742fb6058d076e --- 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