aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/snort/snort.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc
index f96d6293..18a4bcff 100644
--- a/packages/snort/snort.inc
+++ b/packages/snort/snort.inc
@@ -106,10 +106,10 @@ function generate_snort_conf() {
/* XXX: make multi wan friendly */
$snort_ext_int = $config['installedpackages']['snort']['config'][0]['iface_array'][0];
- $text = "*/60\t* \t 1\t *\t *\t root\t /usr/bin/nice -n20 /usr/local/pkg/snort_check_for_rule_updates.php";
- $file = "/etc/crontab";
- add_text_to_file($file, $text);
- remove_text_from_file($file, $text);
+ $text_ww = "*/60\t* \t 1\t *\t *\t root\t /usr/bin/nice -n20 /usr/local/pkg/snort_check_for_rule_updates.php";
+ $filenamea = "/etc/crontab";
+ remove_text_from_file($filenamea, $text_ww);
+ add_text_to_file($filenamea, $text_ww);
exec("killall -HUP cron");
/* should we install a automatic update crontab entry? */