diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2015-08-11 18:39:49 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2015-08-11 18:39:49 -0400 |
commit | 89e3801c0b79e3a5f059b8f367dad0589358eade (patch) | |
tree | 24976943d40d8fcc629fbd37ad12e9ea09fa8f65 /config/snort | |
parent | 27be41aa2101993dbead8cc93bab246114af6ab3 (diff) | |
download | pfsense-packages-89e3801c0b79e3a5f059b8f367dad0589358eade.tar.gz pfsense-packages-89e3801c0b79e3a5f059b8f367dad0589358eade.tar.bz2 pfsense-packages-89e3801c0b79e3a5f059b8f367dad0589358eade.zip |
Need to use exec_command() since we want output back from execution.
Diffstat (limited to 'config/snort')
-rw-r--r-- | config/snort/snort_defs.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/snort/snort_defs.inc b/config/snort/snort_defs.inc index 3f5c82e5..aa2d640d 100644 --- a/config/snort/snort_defs.inc +++ b/config/snort/snort_defs.inc @@ -51,11 +51,11 @@ if (!defined("SNORT_BIN_VERSION")) { // Grab the Snort binary version programmatically $snortver = array(); $snortbindir = SNORT_PBI_BINDIR; - mwexec("{$snortbindir}/snort -V 2>&1 |/usr/bin/grep Version | /usr/bin/cut -c20-26", $snortver); - if (!empty($snortver[0])) - define("SNORT_BIN_VERSION", $snortver[0]); + $snortver = exec_command("{$snortbindir}/snort -V 2>&1 |/usr/bin/grep Version | /usr/bin/cut -c20-26"); + if (!empty($snortver)) + define("SNORT_BIN_VERSION", $snortver); else - define("SNORT_BIN_VERSION", "2.9.7.3"); + define("SNORT_BIN_VERSION", ""); } if (!defined("SNORT_SID_MODS_PATH")) define('SNORT_SID_MODS_PATH', "{$g['vardb_path']}/snort/sidmods/"); |