diff options
Diffstat (limited to 'config/snort/snort.inc')
-rw-r--r-- | config/snort/snort.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 70dc31bf..d8826ea9 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -631,7 +631,8 @@ function extract_snort_rules_md5($tmpfname) { $static_output = gettext("Extracting snort rules..."); update_all_status($static_output); } - $cmd = "/usr/bin/tar xzf {$tmpfname}/{$snort_filename} -C /usr/local/etc/snort/"; + mkdir("/usr/local/etc/snort/rules/"); + $cmd = "/usr/bin/tar xzf {$tmpfname}/{$snort_filename} -C /usr/local/etc/snort/rules/"; /* extract item and show status during extraction */ $handle = popen('$cmd 2>&1', 'r'); while(!feof($handle)) { |