From: Sage Weil Date: Fri, 11 Sep 2015 15:24:18 +0000 (-0400) Subject: ceph.spec: make /var/{lib,log,run} owned by ceph X-Git-Tag: v9.1.0~156^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e7837d1d36d92cfa156d1bf13a008505a7c2f20e;p=ceph.git ceph.spec: make /var/{lib,log,run} owned by ceph Move creation of /var/lib/ceph and /var/run/ceph to ceph-common, too. Signed-off-by: Sage Weil --- diff --git a/ceph.spec.in b/ceph.spec.in index 3420461c0965..4e864f3fa2fc 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -809,15 +809,14 @@ mkdir -p %{_localstatedir}/run/ceph/ %{_mandir}/man8/ceph-clsinfo.8* %{_mandir}/man8/librados-config.8* #set up placeholder directories -%attr(770,ceph,ceph) %dir %{_localstatedir}/lib/ceph/ -%attr(770,ceph,ceph) %dir %{_localstatedir}/lib/ceph/tmp -%attr(770,ceph,ceph) %dir %{_localstatedir}/lib/ceph/mon -%attr(770,ceph,ceph) %dir %{_localstatedir}/lib/ceph/osd -%attr(770,ceph,ceph) %dir %{_localstatedir}/lib/ceph/mds -%attr(770,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-osd -%attr(770,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-mds -%attr(770,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-rgw -%attr(770,ceph,ceph) %dir %{_localstatedir}/run/ceph/ +%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/tmp +%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/mon +%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/osd +%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/mds +%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-osd +%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-mds +%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-rgw +%attr(750,ceph,ceph) %dir %{_localstatedir}/run/ceph ################################################################################# %files -n ceph-common @@ -846,7 +845,6 @@ mkdir -p %{_localstatedir}/run/ceph/ %{_datadir}/ceph/id_dsa_drop.ceph.com %{_datadir}/ceph/id_dsa_drop.ceph.com.pub %dir %{_sysconfdir}/ceph/ -%dir %{_localstatedir}/log/ceph/ %dir %{_datarootdir}/ceph/ %dir %{_libexecdir}/ceph/ %config %{_sysconfdir}/bash_completion.d/rados @@ -856,7 +854,8 @@ mkdir -p %{_localstatedir}/run/ceph/ %{python_sitelib}/ceph_argparse.py* %{python_sitelib}/ceph_daemon.py* %{_udevrulesdir}/50-rbd.rules -%attr(2750,ceph,ceph) %dir %{_localstatedir}/log/ceph/ +%attr(3770,ceph,ceph) %dir %{_localstatedir}/log/ceph/ +%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/ %pre -n ceph-common CEPH_GROUP_ID=""