]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: move rgw logrotate to rgw subpackage 3476/head
authorKen Dreyer <kdreyer@redhat.com>
Fri, 23 Jan 2015 16:34:39 +0000 (09:34 -0700)
committerKen Dreyer <kdreyer@redhat.com>
Fri, 23 Jan 2015 16:37:56 +0000 (09:37 -0700)
Prior to this commit, the radosgw logrotate config was in the main
"ceph" package. This meant that if a user had installed "ceph", but not
"ceph-radosgw", they would end up with a logrotate configuration that
was unnecessary.

Only install the logrotate configuration file if the user has installed
ceph-radosgw.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
ceph.spec.in

index 8f5955423dad55dc4c535939b31dfcff17b14c22..05f39f41af268200645d749df6fc4cd0d71729a7 100644 (file)
@@ -500,7 +500,6 @@ fi
 %endif
 %config %{_sysconfdir}/bash_completion.d/ceph
 %config(noreplace) %{_sysconfdir}/logrotate.d/ceph
-%config(noreplace) %{_sysconfdir}/logrotate.d/radosgw
 %{_mandir}/man8/ceph-deploy.8*
 %{_mandir}/man8/ceph-disk.8*
 %{_mandir}/man8/ceph-mon.8*
@@ -618,6 +617,7 @@ fi
 %{_mandir}/man8/radosgw.8*
 %{_mandir}/man8/radosgw-admin.8*
 %{_sbindir}/rcceph-radosgw
+%config(noreplace) %{_sysconfdir}/logrotate.d/radosgw
 %config %{_sysconfdir}/bash_completion.d/radosgw-admin
 %dir %{_localstatedir}/log/radosgw/