diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2015-11-17 23:59:35 -0500 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2015-11-17 23:59:35 -0500 |
commit | ae9dfe084de557f9da35070bdcc1149428e0aedd (patch) | |
tree | db452df439055b31468afd3d190dd3d5221dc2ba /config/snort/snort_check_for_rule_updates.php | |
parent | 0ed87a96c2fbc91f124bbd7bb8a2797dd9901e53 (diff) | |
download | pfsense-packages-ae9dfe084de557f9da35070bdcc1149428e0aedd.tar.gz pfsense-packages-ae9dfe084de557f9da35070bdcc1149428e0aedd.tar.bz2 pfsense-packages-ae9dfe084de557f9da35070bdcc1149428e0aedd.zip |
Add fixes for some OpenAppID missing folders and files.
Diffstat (limited to 'config/snort/snort_check_for_rule_updates.php')
-rwxr-xr-x | config/snort/snort_check_for_rule_updates.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php index e2ec20e3..929ddad1 100755 --- a/config/snort/snort_check_for_rule_updates.php +++ b/config/snort/snort_check_for_rule_updates.php @@ -580,6 +580,11 @@ if ($openappid_detectors == 'on') { update_status(gettext("Copying md5 signature to snort directory...")); @copy("{$tmpfname}/{$snort_openappid_filename_md5}", "{$snortdir}/{$snort_openappid_filename_md5}"); } + if (!is_dir("{$snort_openappid_path}custom")) { + safe_mkdir("{$snort_openappid_path}custom"); + safe_mkdir("{$snort_openappid_path}custom/lua"); + touch("{$snort_openappid_path}custom/userappid.conf"); + } update_status(gettext("Extraction of Snort OpenAppID detectors completed...")); $static_output .= gettext(" done.\n"); update_output_window($static_output); |