diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-04-28 10:07:23 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-04-28 10:07:23 -0300 |
commit | e936ec53eeea5c41c4b53459c8f5954f84cd2bad (patch) | |
tree | 2cd24bae9d699f1fee0a60457d12fb51a77fd21e /config/freeradius2/freeradius_view_config.php | |
parent | 275df19a521e54c8afb273de8bad76e361307923 (diff) | |
download | pfsense-packages-e936ec53eeea5c41c4b53459c8f5954f84cd2bad.tar.gz pfsense-packages-e936ec53eeea5c41c4b53459c8f5954f84cd2bad.tar.bz2 pfsense-packages-e936ec53eeea5c41c4b53459c8f5954f84cd2bad.zip |
Fix pbi detection on freeradius2
Diffstat (limited to 'config/freeradius2/freeradius_view_config.php')
-rw-r--r-- | config/freeradius2/freeradius_view_config.php | 7 |
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 |