aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeradius2/freeradius_view_config.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/freeradius2/freeradius_view_config.php')
-rw-r--r--config/freeradius2/freeradius_view_config.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/freeradius2/freeradius_view_config.php b/config/freeradius2/freeradius_view_config.php
index b2959783..0095b009 100644
--- a/config/freeradius2/freeradius_view_config.php
+++ b/config/freeradius2/freeradius_view_config.php
@@ -33,10 +33,13 @@
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") {
+$pfs_version = substr(trim(file_get_contents("/etc/version")),0,3);
+if ($pfs_version == "2.1") {
define('RADDB', '/usr/pbi/freeradius-' . php_uname("m") . '/etc/raddb');
-} else {
+} else if ($pfs_version == "2.1") {
define('RADDB', '/usr/pbi/freeradius-' . php_uname("m") . '/local/etc/raddb');
+} else {
+ define('RADDB', '/usr/local/etc/raddb');
}
// End of system check