summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Login
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-04-23 12:55:32 +0200
committerChristian Poessinger <christian@poessinger.com>2019-04-23 12:55:32 +0200
commitac13c77d7ddd607b32f5948560bfe41cb2dcd756 (patch)
tree8985d9ad848dd15cd7e4119d57c260ca15033ed4 /lib/Vyatta/Login
parent811479dfe458341bfd6c64714e729545cd03573c (diff)
downloadvyatta-cfg-system-ac13c77d7ddd607b32f5948560bfe41cb2dcd756.tar.gz
vyatta-cfg-system-ac13c77d7ddd607b32f5948560bfe41cb2dcd756.zip
T1345: fix Perl error when removing RADIUS configuration
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 {