diff options
author | Alexander Wilke <nachtfalkeaw@web.de> | 2012-06-25 08:51:47 +0300 |
---|---|---|
committer | Alexander Wilke <nachtfalkeaw@web.de> | 2012-06-25 08:51:47 +0300 |
commit | 5ef976c856683a2f8ab3bf26fec77ff48cb0097a (patch) | |
tree | b0a7272a48324d99260d7935d958770513930eb2 /config/freeradius2 | |
parent | 4d8c7eea63b26602de9289241350d8e45c6c58ef (diff) | |
download | pfsense-packages-5ef976c856683a2f8ab3bf26fec77ff48cb0097a.tar.gz pfsense-packages-5ef976c856683a2f8ab3bf26fec77ff48cb0097a.tar.bz2 pfsense-packages-5ef976c856683a2f8ab3bf26fec77ff48cb0097a.zip |
change code according to this suggestion:
https://github.com/bsdperimeter/pfsense-packages/commit/f2d3fcde45029c4bc10748147ce6f92a99887e62#commitcomment-1497582
Diffstat (limited to 'config/freeradius2')
-rw-r--r-- | config/freeradius2/freeradius_view_config.php | 6 |
1 files 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 |