aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAlexander Wilke <nachtfalkeaw@web.de>2012-06-25 08:50:49 +0300
committerAlexander Wilke <nachtfalkeaw@web.de>2012-06-25 08:50:49 +0300
commit4d8c7eea63b26602de9289241350d8e45c6c58ef (patch)
tree1495e9dfc6abf886c691a6865cf6422d5f687451 /config
parente5325120c79ab827552b89e80db597b38457761e (diff)
downloadpfsense-packages-4d8c7eea63b26602de9289241350d8e45c6c58ef.tar.gz
pfsense-packages-4d8c7eea63b26602de9289241350d8e45c6c58ef.tar.bz2
pfsense-packages-4d8c7eea63b26602de9289241350d8e45c6c58ef.zip
change code according to this suggestion:
https://github.com/bsdperimeter/pfsense-packages/commit/f2d3fcde45029c4bc10748147ce6f92a99887e62#commitcomment-1497582
Diffstat (limited to 'config')
-rw-r--r--config/freeradius2/freeradius.inc8
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