Change ownership for some folders according to OSCI-1074
authorDmitry Burmistrov <dburmistrov@mirantis.com>
Tue, 18 Feb 2014 06:03:34 +0000 (10:03 +0400)
committerDmitry Burmistrov <dburmistrov@mirantis.com>
Wed, 19 Feb 2014 07:58:49 +0000 (11:58 +0400)
Change-Id: I0046769f2584ef9df47391352c742fb6058d076e

debian/openstack-dashboard.postinst
rpm/SPECS/python-django-horizon.spec

index 7e75670dfa8de2a3fa3dd7f578824a1ef71e2e04..d05528fa47e53f09d6cdd7c85efe09acf19b54a5 100755 (executable)
@@ -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#
index a8f3193e3b8e4ef130969adba1185cb426934d90..2db5e7ee8a42a6e856ab3456a6513732b5e23d23 100644 (file)
@@ -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