summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-05 21:30:47 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-05 21:30:47 +0100
commitf40ec762280f8fe6aac402d9549143608ce8ff68 (patch)
treec6418ef4e8234643dbbf13568023a4c93f50e23c /src/conf_mode
parent5adba572ef53f59d0548e914f15a0eb91ab0ac15 (diff)
downloadvyos-1x-f40ec762280f8fe6aac402d9549143608ce8ff68.tar.gz
vyos-1x-f40ec762280f8fe6aac402d9549143608ce8ff68.zip
radius: T1990: fix sed command when removing radius service
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/system-login-radius.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/system-login-radius.py b/src/conf_mode/system-login-radius.py
index 8f19bae65..caa7f6b80 100755
--- a/src/conf_mode/system-login-radius.py
+++ b/src/conf_mode/system-login-radius.py
@@ -142,7 +142,7 @@ def apply(radius):
# Disable RADIUS in PAM
os.system("DEBIAN_FRONTEND=noninteractive pam-auth-update --package --remove radius")
- cmd = "'sed -i -e \'/^passwd:.*mapuid[ \t]/s/mapuid[ \t]//\' \
+ cmd = "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]*$//\' \