diff options
author | UnicronNL <kim.sidney@gmail.com> | 2018-05-17 21:48:30 +0200 |
---|---|---|
committer | UnicronNL <kim.sidney@gmail.com> | 2018-05-17 21:48:30 +0200 |
commit | e40a06138fa685ff0822598aca6a936ed03077da (patch) | |
tree | bff9e943dba6eacd6ed87a2a91eda90a72497239 /lib/Vyatta | |
parent | 881da62cd36e0f499fa8dda165feb4f94e71a3c5 (diff) | |
download | vyatta-cfg-system-e40a06138fa685ff0822598aca6a936ed03077da.tar.gz vyatta-cfg-system-e40a06138fa685ff0822598aca6a936ed03077da.zip |
Use system instead of qx
Diffstat (limited to 'lib/Vyatta')
-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 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"; } |