From 9ef01b709e3779e344e8387dfd7a90f21b5ff922 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 24 Apr 2015 09:38:24 -0300 Subject: Use macros defined in snort_defs.inc --- config/snort/snort.inc | 2 +- config/snort/snort_check_for_rule_updates.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'config/snort') diff --git a/config/snort/snort.inc b/config/snort/snort.inc index b9a022fd..64ab6ea5 100755 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -3096,7 +3096,7 @@ function snort_deinstall() { global $config, $g; $snortdir = SNORTDIR; - $snortlibdir = "/usr/pbi/snort-" . php_uname("m") . "/lib"; + $snortlibdir = SNORT_PBI_BASEDIR . "lib"; $snortlogdir = SNORTLOGDIR; $rcdir = RCFILEPREFIX; $snort_rules_upd_log = SNORT_RULES_UPD_LOGFILE; diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php index 3106cb7b..842e39d5 100755 --- a/config/snort/snort_check_for_rule_updates.php +++ b/config/snort/snort_check_for_rule_updates.php @@ -38,7 +38,7 @@ require("/usr/local/pkg/snort/snort_defs.inc"); global $g, $config, $pkg_interface, $snort_gui_include, $rebuild_rules; $snortdir = SNORTDIR; -$snortlibdir = "/usr/pbi/snort-" . php_uname("m") . "/lib"; +$snortlibdir = SNORT_PBI_BASEDIR . "lib"; $snortlogdir = SNORTLOGDIR; $snortiprepdir = SNORT_IPREP_PATH; $snortbindir = SNORT_PBI_BINDIR; -- cgit v1.2.3