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-10 12:33:12 -0700
commitbf538dfedd8ae77ff3a8cf75e7776983c0afd94a (patch)
treec67c0c6116a0413b31905e43d238df982eab35ef /debian/libnss-mapuser.prerm
parent2bb0d52ef65790f848f462da61af708a9a0940d0 (diff)
downloadlibnss-mapuser-bf538dfedd8ae77ff3a8cf75e7776983c0afd94a.tar.gz
libnss-mapuser-bf538dfedd8ae77ff3a8cf75e7776983c0afd94a.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