diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-09-09 00:03:00 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-09-09 00:03:00 +0000 |
commit | d8c7abe367ab0ed3b698ca6d71ff17f1d102f083 (patch) | |
tree | a7fa718385bcface27e971da0a6009fe5ed6b126 /cron-sh/scripts/03_rpm.sh | |
parent | 92cac6c3193c86dda3be4b409592bfec9c7a40e0 (diff) | |
download | msec-d8c7abe367ab0ed3b698ca6d71ff17f1d102f083.tar msec-d8c7abe367ab0ed3b698ca6d71ff17f1d102f083.tar.gz msec-d8c7abe367ab0ed3b698ca6d71ff17f1d102f083.tar.bz2 msec-d8c7abe367ab0ed3b698ca6d71ff17f1d102f083.tar.xz msec-d8c7abe367ab0ed3b698ca6d71ff17f1d102f083.zip |
create check summary report
Diffstat (limited to 'cron-sh/scripts/03_rpm.sh')
-rwxr-xr-x | cron-sh/scripts/03_rpm.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cron-sh/scripts/03_rpm.sh b/cron-sh/scripts/03_rpm.sh index cc10a91..24353e2 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} + Count ${INFOS} ${RPM_QA_TODAY} "Total of installed packages" Diffcheck ${RPM_QA_TODAY} ${RPM_QA_YESTERDAY} ${RPM_QA_DIFF} "packages" fi @@ -54,11 +55,13 @@ if [[ ${CHECK_RPM_INTEGRITY} == yes ]]; then # full check if [[ -s ${RPM_VA_TODAY} ]]; then printf "\nSecurity Warning: These files belonging to packages are modified on the system :\n" >> ${SECURITY} + Count ${INFOS} ${RPM_VA_TODAY} "Total of files belonging to packages that were modified since the install" cat ${RPM_VA_TODAY} >> ${SECURITY} fi if [[ -s ${RPM_VA_CONFIG_TODAY} ]]; then printf "\nSecurity Warning: These config files belonging to packages are modified on the system :\n" >> ${SECURITY} + Count ${INFOS} ${RPM_VA_CONFIG_TODAY} "Total of configuration files belonging to packages that were modified since the install" cat ${RPM_VA_CONFIG_TODAY} >> ${SECURITY} fi |