summaryrefslogtreecommitdiff
path: root/debian/libnss-mapuser.prerm
diff options
context:
space:
mode:
authorDave Olson <olson@cumulusnetworks.com>2018-04-06 15:06:27 -0700
committerDave Olson <olson@cumulusnetworks.com>2018-04-06 15:47:08 -0700
commit4b24261d4a28ed1cd994939d6fa658b44c30a0ac (patch)
treec67c0c6116a0413b31905e43d238df982eab35ef /debian/libnss-mapuser.prerm
parent19e1c2b3cfd99d7ea62e4e8a827febcd7ec15e19 (diff)
downloadlibnss-mapuser-4b24261d4a28ed1cd994939d6fa658b44c30a0ac.tar.gz
libnss-mapuser-4b24261d4a28ed1cd994939d6fa658b44c30a0ac.zip
cleanup group mapname in nsswitch on remove; add priv user to sudo group
Needed to add sed code to remove mapname from nsswitch.conf group search line, similar to passwd line. Somehow forgot that when I added the code to add it in postinst I also somehow forgot to checkin the adduser line to add the radius_priv_user to the sudo group, so fixed that too.
Diffstat (limited to 'debian/libnss-mapuser.prerm')
-rw-r--r--debian/libnss-mapuser.prerm1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/libnss-mapuser.prerm b/debian/libnss-mapuser.prerm
index af98f1b..c4f259f 100644
--- a/debian/libnss-mapuser.prerm
+++ b/debian/libnss-mapuser.prerm
@@ -8,6 +8,7 @@ if [ "$1" = remove ]; then
if [ -e "/etc/nsswitch.conf" ]; then
sed -i -e '/^passwd:.*mapuid[ \t]/s/mapuid[ \t]//' \
-e '/^passwd:.*[ \t]mapname/s/[ \t]mapname//' \
+ -e '/^group:.*[ \t]mapname/s/[ \t]mapname//' \
/etc/nsswitch.conf || true # don't prevent remove on error
fi
fi