diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-10-30 13:19:59 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-10-30 13:19:59 -0700 |
commit | 383444ba4cc47d99a416ae5f37daaecca5b4dd2b (patch) | |
tree | a5b5572aeaf7187929a23f6c6b5c972bc3da6d70 /lib | |
parent | 6ac826749ca794da179babd78ba05bff65f940f8 (diff) | |
download | vyatta-cfg-quagga-383444ba4cc47d99a416ae5f37daaecca5b4dd2b.tar.gz vyatta-cfg-quagga-383444ba4cc47d99a416ae5f37daaecca5b4dd2b.zip |
radius-server: shutup debconf dialog
Found better way to get rid of debconf warning by forcing
non interactive.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Vyatta/Login/RadiusServer.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Vyatta/Login/RadiusServer.pm b/lib/Vyatta/Login/RadiusServer.pm index b3fe3393..cf9cadde 100644 --- a/lib/Vyatta/Login/RadiusServer.pm +++ b/lib/Vyatta/Login/RadiusServer.pm @@ -28,13 +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 2>/dev/null') - == 0; + return system("sudo DEBIAN_FRONTEND=noninteractive" + . "pam-auth-update --package --remove radius") == 0; } sub add_pam_radius { - return system('sudo pam-auth-update --package --add radius 2>/dev/null </dev/null') - == 0; + return system("sudo DEBIAN_FRONTEND=noninteractive" + . "pam-auth-update --package --add radius") == 0; } sub update { |