From 12596a898f50ee156570aae081eadd28426a6b36 Mon Sep 17 00:00:00 2001 From: Nachtfalke Date: Sun, 11 Dec 2011 18:28:37 +0100 Subject: cleanup log files after deinstallation --- config/freeradius2/freeradius.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config') 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"); -- cgit v1.2.3