From 4d8c7eea63b26602de9289241350d8e45c6c58ef Mon Sep 17 00:00:00 2001 From: Alexander Wilke Date: Mon, 25 Jun 2012 08:50:49 +0300 Subject: change code according to this suggestion: https://github.com/bsdperimeter/pfsense-packages/commit/f2d3fcde45029c4bc10748147ce6f92a99887e62#commitcomment-1497582 --- config/freeradius2/freeradius.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config') diff --git a/config/freeradius2/freeradius.inc b/config/freeradius2/freeradius.inc index 37b6bc89..6a33301c 100644 --- a/config/freeradius2/freeradius.inc +++ b/config/freeradius2/freeradius.inc @@ -46,12 +46,12 @@ require_once("filter.inc"); require_once("services.inc"); // Check to find out on which system the package is running -if (substr(trim(file_get_contents("/etc/version")),0,3) == "2.1") { - define('RADDB', '/usr/pbi/freeradius-' . php_uname("m") . '/etc/raddb'); - define('USRLOCAL', '/usr/pbi/freeradius-' . php_uname("m")); -} else { +if (substr(trim(file_get_contents("/etc/version")),0,3) == "2.0") { define('RADDB', '/usr/local/etc/raddb'); define('USRLOCAL', '/usr/local'); +} else { + define('RADDB', '/usr/pbi/freeradius-' . php_uname("m") . '/etc/raddb'); + define('USRLOCAL', '/usr/pbi/freeradius-' . php_uname("m")); } // End of system check -- cgit v1.2.3