diff options
-rw-r--r-- | config/freeradius2/freeradius.inc | 8 |
1 files changed, 4 insertions, 4 deletions
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 |