From 152bf376b51a896f65470a65d8e9410f19d8689b Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 13 Mar 2012 16:58:04 +0530 Subject: rpm spec file: update the 'logrotate' config file during rpm install so there is no need for admin to worry about logrotate configs. Change-Id: Iec6def870d0c3550f2642ade023c03de52d6d530 Signed-off-by: Amar Tumballi BUG: 801372 Reviewed-on: http://review.gluster.com/2935 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- glusterfs.spec.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/glusterfs.spec.in b/glusterfs.spec.in index ef1178fbd1b..7b3cdb056ca 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -230,12 +230,18 @@ sed -i 's|option working-directory /etc/glusterd|option working-directory %{_sha %post /sbin/ldconfig +# Copy the 'glusterfs-logrotate' file at the right place +if [ -d /etc/logrotate.d ]; then + cp %{_docdir}/%{name}-%{version}/glusterfs-logrotate /etc/logrotate.d/glusterfs +fi + %postun /sbin/ldconfig %files %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS +%doc extras/glusterfs-logrotate %{_libdir}/glusterfs %{_libdir}/*.so.* %{_sbindir}/glusterfs* -- cgit