aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeradius2/freeradius.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/freeradius2/freeradius.inc')
-rw-r--r--config/freeradius2/freeradius.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/config/freeradius2/freeradius.inc b/config/freeradius2/freeradius.inc
index 0e31b8d1..7c5cd914 100644
--- a/config/freeradius2/freeradius.inc
+++ b/config/freeradius2/freeradius.inc
@@ -56,9 +56,11 @@ if (substr(trim(file_get_contents("/etc/version")),0,3) == "2.0") {
// End of system check
function freeradius_deinstall_command() {
- exec("cd /var/db/pkg && pkg_delete `ls | grep freeradius`");
- exec("rm -rf " . RADDB);
- exec("rm -rf /var/run/radiusd/");
+ if (substr(trim(file_get_contents("/etc/version")),0,3) == "2.0") {
+ exec("cd /var/db/pkg && pkg_delete `ls | grep freeradius`");
+ exec("rm -rf " . RADDB);
+ exec("rm -rf /var/run/radiusd/");
+ }
}
function freeradius_install_command() {