aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()