summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-10-30 11:06:38 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-10-30 11:06:38 -0700
commit6ac826749ca794da179babd78ba05bff65f940f8 (patch)
treedb13913b78c4f18ee71305ca6e08d46a8796a9a7 /lib/Vyatta
parentc8a022df6f376907fba22e3e2a319ed663aff081 (diff)
downloadvyatta-cfg-system-6ac826749ca794da179babd78ba05bff65f940f8.tar.gz
vyatta-cfg-system-6ac826749ca794da179babd78ba05bff65f940f8.zip
Shut up debconf when installing pam radius
Just get rid of silly debconf warnings when doing pam-auth-update
Diffstat (limited to 'lib/Vyatta')
-rw-r--r--lib/Vyatta/Login/RadiusServer.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Vyatta/Login/RadiusServer.pm b/lib/Vyatta/Login/RadiusServer.pm
index 820f6da2..b3fe3393 100644
--- a/lib/Vyatta/Login/RadiusServer.pm
+++ b/lib/Vyatta/Login/RadiusServer.pm
@@ -28,11 +28,13 @@ my $PAM_RAD_BEGIN = '# BEGIN Vyatta Radius servers';
my $PAM_RAD_END = '# END Vyatta Radius servers';
sub remove_pam_radius {
- return system('sudo pam-auth-update --package --remove radius') == 0;
+ return system('sudo pam-auth-update --package --remove radius 2>/dev/null')
+ == 0;
}
sub add_pam_radius {
- return system('sudo pam-auth-update --package --add radius') == 0;
+ return system('sudo pam-auth-update --package --add radius 2>/dev/null </dev/null')
+ == 0;
}
sub update {