diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-12-06 03:05:32 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-12-06 03:05:32 +0000 |
commit | 1f3323d31793601b20652d24bd3d6122e02748c7 (patch) | |
tree | ec26fcddee5227f563cff1294a738938d49dd8e0 /packages/snort | |
parent | 58d38d059c969857377c93d110a29463a8676d91 (diff) | |
download | pfsense-packages-1f3323d31793601b20652d24bd3d6122e02748c7.tar.gz pfsense-packages-1f3323d31793601b20652d24bd3d6122e02748c7.tar.bz2 pfsense-packages-1f3323d31793601b20652d24bd3d6122e02748c7.zip |
* ensure /var/log/snort exists
* ensure /var/log/snort/alert exists
Diffstat (limited to 'packages/snort')
-rw-r--r-- | packages/snort/snort.inc | 5 |
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']; |