diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-06-12 13:46:02 -0400 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-06-12 13:46:02 -0400 |
commit | fbf36587a4c10add5fb46f807d56892c6c39b6d4 (patch) | |
tree | 7470ef3d15742f0f154d9eebc5857e6c3e033860 /config | |
parent | 47d45295c8f6522f175cc6a2e2db22e90275dd3c (diff) | |
download | pfsense-packages-fbf36587a4c10add5fb46f807d56892c6c39b6d4.tar.gz pfsense-packages-fbf36587a4c10add5fb46f807d56892c6c39b6d4.tar.bz2 pfsense-packages-fbf36587a4c10add5fb46f807d56892c6c39b6d4.zip |
Prepare syslog-ng and ladvd for 2.3+RELENG_2_2_3
Diffstat (limited to 'config')
-rw-r--r-- | config/syslog-ng/syslog-ng.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/syslog-ng/syslog-ng.inc b/config/syslog-ng/syslog-ng.inc index 818ae123..bbec3a7c 100644 --- a/config/syslog-ng/syslog-ng.inc +++ b/config/syslog-ng/syslog-ng.inc @@ -37,7 +37,11 @@ require_once('service-utils.inc'); if(!function_exists("filter_configure")) require_once("filter.inc"); -define("SYSLOGNG_BASEDIR", "/usr/pbi/syslog-ng-" . php_uname("m") . "/"); +$pf_version=substr(trim(file_get_contents("/etc/version")),0,3); +if ($pf_version == "2.1" || $pf_version == "2.2") + define("SYSLOGNG_BASEDIR", "/usr/pbi/syslog-ng-" . php_uname("m") . "/"); +else + define("SYSLOGNG_BASEDIR", "/usr/local/"); function syslogng_get_real_interface_address($interface) { $interface = convert_friendly_interface_to_real_interface_name($interface); |