aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorNachtfalke <nachtfalkeaw@web.de>2011-12-11 18:28:37 +0100
committerNachtfalke <nachtfalkeaw@web.de>2011-12-11 18:28:37 +0100
commit12596a898f50ee156570aae081eadd28426a6b36 (patch)
tree5a98a6733fe0faee08ef66eace5f8d9a3b2051ee /config
parent7771d72802c805dbb602e3e3a0f299a58ac64b1c (diff)
downloadpfsense-packages-12596a898f50ee156570aae081eadd28426a6b36.tar.gz
pfsense-packages-12596a898f50ee156570aae081eadd28426a6b36.tar.bz2
pfsense-packages-12596a898f50ee156570aae081eadd28426a6b36.zip
cleanup log files after deinstallation
Diffstat (limited to 'config')
-rwxr-xr-xconfig/freeradius2/freeradius.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/freeradius2/freeradius.inc b/config/freeradius2/freeradius.inc
index 762a2200..2a83911c 100755
--- a/config/freeradius2/freeradius.inc
+++ b/config/freeradius2/freeradius.inc
@@ -9,6 +9,7 @@ function freeradius_deinstall_command() {
exec("rm -rf /usr/local/etc/raddb/");
exec("rm -rf /var/log/raddb/");
exec("rm -rf /var/log/radacct/");
+ exec("rm -f /var/log/radius.log");
}
function freeradius_install_command() {
@@ -58,7 +59,6 @@ function freeradius_settings_resync() {
$varsettingsallowcoredumps = $varsettings['varsettingsallowcoredumps'];
$varsettingsregularexpressions = $varsettings['varsettingsregularexpressions'];
$varsettingsextendedexpressions = $varsettings['varsettingsextendedexpressions'];
-
$varsettingsmaxattributes = $varsettings['varsettingsmaxattributes'];
$varsettingsrejectdelay = $varsettings['varsettingsrejectdelay'];
$varsettingsstartservers = $varsettings['varsettingsstartservers'];
@@ -104,6 +104,7 @@ hostname_lookups = $varsettingshostnamelookups
allow_core_dumps = $varsettingsallowcoredumps
regular_expressions = $varsettingsregularexpressions
extended_expressions = $varsettingsextendedexpressions
+proxy_requests = yes
EOD;
@@ -144,9 +145,8 @@ checkrad = \${sbindir}/checkrad
security {
max_attributes = $varsettingsmaxattributes
reject_delay = $varsettingsrejectdelay
- status_server = no ### Needs additional config in raddb/sites-available/status
+ status_server = no ### Needs additional config in raddb/sites-available/status
}
- proxy_requests = yes
\$INCLUDE \${confdir}/proxy.conf
\$INCLUDE \${confdir}/clients.conf
@@ -490,7 +490,7 @@ post-proxy {
EOD;
- conf_mount_rw();
+ conf_mount_rw();
file_put_contents(RADDB . '/radiusd.conf', $conf);
conf_mount_ro();
restart_service("freeradius");