aboutsummaryrefslogtreecommitdiffstats
path: root/packages/snort
diff options
context:
space:
mode:
Diffstat (limited to 'packages/snort')
-rw-r--r--packages/snort/snort.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc
index 091fa195..4ac446ff 100644
--- a/packages/snort/snort.inc
+++ b/packages/snort/snort.inc
@@ -45,6 +45,11 @@ function sync_package_snort_reinstall() {
function sync_package_snort() {
global $config, $g;
+ mwexec("mkdir -p /var/log/snort/");
+
+ if(!file_exists("/var/log/snort/alert"))
+ touch("/var/log/snort/alert");
+
/* snort -> advanced features */
$bpfbufsize = $config['installedpackages']['snortadvanced']['config'][0]['bpfbufsize'];
$bpfmaxbufsize = $config['installedpackages']['snortadvanced']['config'][0]['bpfmaxbufsize'];