summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta')
-rw-r--r--lib/Vyatta/Login/Radius.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Vyatta/Login/Radius.pm b/lib/Vyatta/Login/Radius.pm
index 53c92673..07da9d8c 100644
--- a/lib/Vyatta/Login/Radius.pm
+++ b/lib/Vyatta/Login/Radius.pm
@@ -39,8 +39,9 @@ sub remove_pam_radius {
"pam-auth-update --package --remove radius") == 0
or die "pam-auth-update remove failed";
- unlink($PAM_RAD_AUTH)
- or die "Can't remove $PAM_RAD_AUTH";
+ if (-e $PAM_RAD_AUTH) {
+ unlink ($PAM_RAD_AUTH) or die "Can't remove $PAM_RAD_AUTH";
+ }
}
sub add_pam_radius {