aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2010-02-09 20:29:58 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2010-02-09 20:29:58 +0000
commitfba4f45d841dc708e2794a7145a1a938b3c6a22e (patch)
tree86b58b7e22ec3fc303c2d8ab5d2e6c2b844539e7 /src
parente7735b7daae5dec9b6935c9ea47d232498ab16fd (diff)
downloadmsec-fba4f45d841dc708e2794a7145a1a938b3c6a22e.tar
msec-fba4f45d841dc708e2794a7145a1a938b3c6a22e.tar.gz
msec-fba4f45d841dc708e2794a7145a1a938b3c6a22e.tar.bz2
msec-fba4f45d841dc708e2794a7145a1a938b3c6a22e.tar.xz
msec-fba4f45d841dc708e2794a7145a1a938b3c6a22e.zip
using proper cron file
Diffstat (limited to 'src')
-rw-r--r--src/msec/plugins/audit.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/msec/plugins/audit.py b/src/msec/plugins/audit.py
index 6586d03..84d9e5d 100644
--- a/src/msec/plugins/audit.py
+++ b/src/msec/plugins/audit.py
@@ -207,14 +207,15 @@ class audit:
cron.remove_line_matching('[^#]+/usr/share/msec/security.sh')
if arg == "yes":
- for securitycron in SECURITYCRON:
- securitycron = self.configfiles.get_config_file(SECURITYCRON)
+ for cron in SECURITYCRON:
+ securitycron = self.configfiles.get_config_file(cron)
if not securitycron.exists():
self.log.info(_('Activating daily security check'))
securitycron.symlink(SECURITYSH)
else:
- for securitycron in SECURITYCRON:
+ for cron in SECURITYCRON:
+ securitycron = self.configfiles.get_config_file(cron)
if securitycron.exists():
self.log.info(_('Disabling daily security check'))
securitycron.unlink()