From e40a06138fa685ff0822598aca6a936ed03077da Mon Sep 17 00:00:00 2001 From: UnicronNL Date: Thu, 17 May 2018 21:48:30 +0200 Subject: Use system instead of qx --- lib/Vyatta/Login/RadiusServer.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/Vyatta/Login/RadiusServer.pm b/lib/Vyatta/Login/RadiusServer.pm index 9eec4aa3..5a71b1f8 100644 --- a/lib/Vyatta/Login/RadiusServer.pm +++ b/lib/Vyatta/Login/RadiusServer.pm @@ -29,11 +29,11 @@ my $PAM_RAD_AUTH = "/usr/share/pam-configs/radius"; my $PAM_RAD_SYSCONF = "/opt/vyatta/etc/pam_radius.cfg"; sub remove_pam_radius { - qx'sed -i -e \'/^passwd:.*mapuid[ \t]/s/mapuid[ \t]//\' \ + system('sed -i -e \'/^passwd:.*mapuid[ \t]/s/mapuid[ \t]//\' \ -e \'/^passwd:.*[ \t]mapname/s/[ \t]mapname//\' \ -e \'/^group:.*[ \t]mapname/s/[ \t]mapname//\' \ -e \'s/[ \t]*$//\' \ - /etc/nsswitch.conf'; + /etc/nsswitch.conf'); system("DEBIAN_FRONTEND=noninteractive " . "pam-auth-update --package --remove radius") == 0 @@ -51,13 +51,13 @@ sub add_pam_radius { "pam-auth-update --package radius") == 0 or die "pam-auth-update add failed"; - qx'sed -i -e \'/\smapname/b\' \ + system('sed -i -e \'/\smapname/b\' \ -e \'/^passwd:/s/\s\s*/&mapuid /\' \ -e \'/^passwd:.*#/s/#.*/mapname &/\' \ -e \'/^passwd:[^#]*$/s/$/ mapname &/\' \ -e \'/^group:.*#/s/#.*/ mapname &/\' \ -e \'/^group:[^#]*$/s/: */&mapname /\' \ - /etc/nsswitch.conf' == 0 + /etc/nsswitch.conf') == 0 or die "NSS configuration failed"; } -- cgit v1.2.3