diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2010-02-10 14:32:29 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2010-02-10 14:32:29 +0000 |
commit | 808c8c9ee57499a1f4a4af480df3eddce1725f9f (patch) | |
tree | 02702a4b64c73188f7783afdd732f6f094f55d1c /cron-sh/scripts/06_sectool.sh | |
parent | bdcb84e88f1877d173d48438c14c9042f2d1744e (diff) | |
download | msec-808c8c9ee57499a1f4a4af480df3eddce1725f9f.tar msec-808c8c9ee57499a1f4a4af480df3eddce1725f9f.tar.gz msec-808c8c9ee57499a1f4a4af480df3eddce1725f9f.tar.bz2 msec-808c8c9ee57499a1f4a4af480df3eddce1725f9f.tar.xz msec-808c8c9ee57499a1f4a4af480df3eddce1725f9f.zip |
Properly log execution results for different check periods
Diffstat (limited to 'cron-sh/scripts/06_sectool.sh')
-rwxr-xr-x | cron-sh/scripts/06_sectool.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cron-sh/scripts/06_sectool.sh b/cron-sh/scripts/06_sectool.sh index 6888e17..ef9fe6d 100755 --- a/cron-sh/scripts/06_sectool.sh +++ b/cron-sh/scripts/06_sectool.sh @@ -2,7 +2,7 @@ # msec: sectool check # check if we are run from main script -if [ -z "$MSEC_TMP" -o -z "$INFOS" -o -z "$SECURITY" -o -z "$DIFF" -o -z "$SECURITY_LOG" ]; then +if [ -z "$MSEC_TMP" -o -z "$INFOS" -o -z "$SECURITY" -o -z "$DIFF" -o -z "$SECURITY_LOG" -o -z "${CURRENT_CHECK_TYPE}" ]; then # variables are set in security.sh and propagated to the subscripts echo "Error: this check should be run by the main msec security check!" echo " do not run it directly unless you know what you are doing." @@ -10,9 +10,9 @@ if [ -z "$MSEC_TMP" -o -z "$INFOS" -o -z "$SECURITY" -o -z "$DIFF" -o -z "$SECUR fi # check for changes in users -SECTOOL_TODAY="/var/log/security/sectool.today" -SECTOOL_YESTERDAY="/var/log/security/sectool.yesterday" -SECTOOL_DIFF="/var/log/security/sectool.diff" +SECTOOL_TODAY="/var/log/security/sectool.${CURRENT_CHECK_TYPE}.today" +SECTOOL_YESTERDAY="/var/log/security/sectool.${CURRENT_CHECK_TYPE}.yesterday" +SECTOOL_DIFF="/var/log/security/sectool.${CURRENT_CHECK_TYPE}.diff" if [[ -f ${SECTOOL_TODAY} ]]; then mv ${SECTOOL_TODAY} ${SECTOOL_YESTERDAY}; |