From 1b64fd5ba728875d918f80a79406ea7851de464d Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed <faiyaza@cs.princeton.edu> Date: Mon, 23 Jul 2007 18:21:36 +0000 Subject: [PATCH] Gzip old nm log --- NodeManager.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NodeManager.spec b/NodeManager.spec index dd3984c..017c1f7 100644 --- a/NodeManager.spec +++ b/NodeManager.spec @@ -49,6 +49,9 @@ install -D -m 755 nm.init $RPM_BUILD_ROOT/%{_initrddir}/nm install -D -m 644 nm.logrotate $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/nm %post +if [ -e /var/log/nm ] ; then + gzip /var/log/nm +fi chkconfig --add conf_files chkconfig conf_files on chkconfig --add nm -- 2.47.0