summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Login
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta/Login')
-rw-r--r--lib/Vyatta/Login/RadiusServer.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Vyatta/Login/RadiusServer.pm b/lib/Vyatta/Login/RadiusServer.pm
index f2e15de2..39c7cea1 100644
--- a/lib/Vyatta/Login/RadiusServer.pm
+++ b/lib/Vyatta/Login/RadiusServer.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 {