From 1f3323d31793601b20652d24bd3d6122e02748c7 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 6 Dec 2006 03:05:32 +0000 Subject: * ensure /var/log/snort exists * ensure /var/log/snort/alert exists --- packages/snort/snort.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages') 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']; -- cgit v1.2.3