aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2011-12-16 09:01:37 -0800
committerChris Buechler <cmb@pfsense.org>2011-12-16 09:01:37 -0800
commit2453b47716bcbc46db3334fb3e410589bebf02a1 (patch)
tree61c9696b3c4e8bc941e382775433706834bbfa35 /config
parent6fa15510ae4285911f0e643c48f0940d94f22ff5 (diff)
parent5cbe5985b13cec29a24ff40697bfa58344d41759 (diff)
downloadpfsense-packages-2453b47716bcbc46db3334fb3e410589bebf02a1.tar.gz
pfsense-packages-2453b47716bcbc46db3334fb3e410589bebf02a1.tar.bz2
pfsense-packages-2453b47716bcbc46db3334fb3e410589bebf02a1.zip
Merge pull request #135 from Nachtfalkeaw/master
hope this creates the config, clients ans users files after reinstallation.
Diffstat (limited to 'config')
-rwxr-xr-xconfig/freeradius2/freeradius.inc7
-rwxr-xr-xconfig/freeradius2/freeradius.xml6
2 files changed, 6 insertions, 7 deletions
diff --git a/config/freeradius2/freeradius.inc b/config/freeradius2/freeradius.inc
index 76fb23d5..518544c9 100755
--- a/config/freeradius2/freeradius.inc
+++ b/config/freeradius2/freeradius.inc
@@ -27,15 +27,8 @@ function freeradius_install_command() {
}
}
- exec("chown -R root:wheel /usr/local/etc/raddb");
- exec("chown -R root:wheel /usr/local/lib/freeradius-2.1.12");
- // disable an experimental module of freeRADIUS which could be a security issue if not configured correctly!
- exec("rm -f /usr/local/etc/raddb/sites-enabled/control-socket");
-
closedir($handle);
- freeradius_settings_resync();
-
$rcfile = array();
$rcfile['file'] = 'radiusd.sh';
$rcfile['start'] = '/usr/local/etc/rc.d/radiusd onestart';
diff --git a/config/freeradius2/freeradius.xml b/config/freeradius2/freeradius.xml
index 60d3a3ce..fbf8fa18 100755
--- a/config/freeradius2/freeradius.xml
+++ b/config/freeradius2/freeradius.xml
@@ -261,6 +261,12 @@
</custom_php_resync_config_command>
<custom_php_install_command>
freeradius_install_command();
+ freeradius_settings_command();
+ freeradius_clients_command();
+ freeradius_users_command();
+ exec("chown -R root:wheel /usr/local/etc/raddb");
+ exec("chown -R root:wheel /usr/local/lib/freeradius-2.1.12");
+ exec("rm -f /usr/local/etc/raddb/sites-enabled/control-socket");
</custom_php_install_command>
<custom_php_deinstall_command>
freeradius_deinstall_command();