- fix zz-disk_space script (#474810)
This commit is contained in:
parent
9da9a408f8
commit
010ce69a24
13
logwatch-7.3.6-zz-disk_space2.patch
Normal file
13
logwatch-7.3.6-zz-disk_space2.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff -up logwatch-7.3.6/scripts/services/zz-disk_space.pom logwatch-7.3.6/scripts/services/zz-disk_space
|
||||
--- logwatch-7.3.6/scripts/services/zz-disk_space.pom 2008-11-13 12:42:45.000000000 +0100
|
||||
+++ logwatch-7.3.6/scripts/services/zz-disk_space 2008-12-08 13:23:28.000000000 +0100
|
||||
@@ -169,7 +169,8 @@ sub DiskFull
|
||||
my @fields = split(' ', $row);
|
||||
my $use = $fields[4];
|
||||
$use =~ s/%//;
|
||||
- if (($use > $diskfull_threshhold) && ($fields[0] !~ /\/dev\/scd/ ) && ($fields[0] !~ /\/dev\/sr/ ))
|
||||
+ if (($use > $diskfull_threshhold) && ($fields[0] !~ /\/dev\/scd/ ) && ($fields[0] !~ /\/dev\/sr/ )
|
||||
+ & ($fields[0] !~ /\/dev\/loop./))
|
||||
{
|
||||
print "$fields[0] => $fields[4] Used. Warning. Disk Filling up.\n";
|
||||
}
|
||||
@ -1,7 +1,7 @@
|
||||
Summary: A log file analysis program
|
||||
Name: logwatch
|
||||
Version: 7.3.6
|
||||
Release: 35%{?dist}
|
||||
Release: 36%{?dist}
|
||||
License: MIT
|
||||
Group: Applications/System
|
||||
URL: http://www.logwatch.org/
|
||||
@ -45,6 +45,7 @@ Patch41: logwatch-7.3.6-logrotate.patch
|
||||
Patch45: logwatch-7.3.6-init2.patch
|
||||
Patch46: logwatch-7.3.6-secure2.patch
|
||||
Patch47: logwatch-7.3.6-exim.patch
|
||||
Patch48: logwatch-7.3.6-zz-disk_space2.patch
|
||||
|
||||
Requires: textutils sh-utils grep mailx
|
||||
Requires: perl(Date::Manip)
|
||||
@ -98,6 +99,7 @@ of the package on many systems.
|
||||
%patch45 -p1
|
||||
%patch46 -p1
|
||||
%patch47 -p1
|
||||
%patch48 -p1
|
||||
rm -f scripts/services/*.orig
|
||||
|
||||
%build
|
||||
@ -209,6 +211,9 @@ rm -rf %{buildroot}
|
||||
%doc License project/CHANGES
|
||||
|
||||
%changelog
|
||||
* Mon Dec 8 2008 Ivana Varekova <varekova@redhat.com> 7.3.6-36
|
||||
- fix zz-disk_space script (#474810)
|
||||
|
||||
* Thu Nov 13 2008 Ivana Varekova <varekova@redhat.com> 7.3.6-35
|
||||
- fix exim script
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user