diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-09-09 00:04:28 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-09-09 00:04:28 +0000 |
commit | 04264a85de43e5cc0ef5f4c7113e0979bc397a53 (patch) | |
tree | 8943530e6ec71c6d7db4ba3fc403e4e3ab2d716b /cron-sh/scripts/03_rpm.sh | |
parent | 7d9bf9988b2ea0960741aa09e794c2c365c5f09b (diff) | |
download | msec-04264a85de43e5cc0ef5f4c7113e0979bc397a53.tar msec-04264a85de43e5cc0ef5f4c7113e0979bc397a53.tar.gz msec-04264a85de43e5cc0ef5f4c7113e0979bc397a53.tar.bz2 msec-04264a85de43e5cc0ef5f4c7113e0979bc397a53.tar.xz msec-04264a85de43e5cc0ef5f4c7113e0979bc397a53.zip |
added support for msec exceptions
Diffstat (limited to 'cron-sh/scripts/03_rpm.sh')
-rwxr-xr-x | cron-sh/scripts/03_rpm.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cron-sh/scripts/03_rpm.sh b/cron-sh/scripts/03_rpm.sh index 24353e2..264bd63 100755 --- a/cron-sh/scripts/03_rpm.sh +++ b/cron-sh/scripts/03_rpm.sh @@ -40,6 +40,7 @@ fi # list of installed packages if [[ ${CHECK_RPM_PACKAGES} == yes ]]; then rpm -qa --qf "%{NAME}-%{VERSION}-%{RELEASE}\n" | sort > ${RPM_QA_TODAY} + Filter ${RPM_QA_TODAY} CHECK_RPM_PACKAGES Count ${INFOS} ${RPM_QA_TODAY} "Total of installed packages" Diffcheck ${RPM_QA_TODAY} ${RPM_QA_YESTERDAY} ${RPM_QA_DIFF} "packages" fi @@ -48,6 +49,7 @@ fi if [[ ${CHECK_RPM_INTEGRITY} == yes ]]; then rm -f ${RPM_VA_TODAY}.tmp nice --adjustment=+19 rpm -Va --noscripts | grep '^..5' | sort > ${RPM_VA_TODAY}.tmp + Filter ${RPM_VA_TODAY} CHECK_RPM_INTEGRITY grep -v '^..........c.' ${RPM_VA_TODAY}.tmp | sed 's/^............//' | sort > ${RPM_VA_TODAY} grep '^..........c.' ${RPM_VA_TODAY}.tmp | sed 's/^............//' | sort > ${RPM_VA_CONFIG_TODAY} rm -f ${RPM_VA_TODAY}.tmp |