summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2012-03-13 16:58:04 +0530
committerVijay Bellur <vijay@gluster.com>2012-03-14 05:59:02 -0700
commit152bf376b51a896f65470a65d8e9410f19d8689b (patch)
tree7025949d6b0e6653d17ad262f1a4447034654009 /glusterfs.spec.in
parentaa0f68aa8ec38808a83553abde8d8211047e7b4e (diff)
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 <amarts@redhat.com> BUG: 801372 Reviewed-on: http://review.gluster.com/2935 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index ef1178f..7b3cdb0 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*