From 5ef976c856683a2f8ab3bf26fec77ff48cb0097a Mon Sep 17 00:00:00 2001 From: Alexander Wilke Date: Mon, 25 Jun 2012 08:51:47 +0300 Subject: change code according to this suggestion: https://github.com/bsdperimeter/pfsense-packages/commit/f2d3fcde45029c4bc10748147ce6f92a99887e62#commitcomment-1497582 --- config/freeradius2/freeradius_view_config.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/freeradius2/freeradius_view_config.php b/config/freeradius2/freeradius_view_config.php index e584a4ba..a29e1a55 100644 --- a/config/freeradius2/freeradius_view_config.php +++ b/config/freeradius2/freeradius_view_config.php @@ -33,10 +33,10 @@ require("guiconfig.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'); -} else { +if (substr(trim(file_get_contents("/etc/version")),0,3) == "2.0") { define('RADDB', '/usr/local/etc/raddb'); +} else { + define('RADDB', '/usr/pbi/freeradius-' . php_uname("m") . '/etc/raddb'); } // End of system check -- cgit v1.2.3