From 2ded63a0e6748018dada646691843462797cc7fc Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 2 May 2021 18:14:59 +0200 Subject: Update package to 1.1.0-cl3u3 --- debian/libnss-mapuser.prerm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'debian/libnss-mapuser.prerm') diff --git a/debian/libnss-mapuser.prerm b/debian/libnss-mapuser.prerm index c9bb6b1..c4f259f 100644 --- a/debian/libnss-mapuser.prerm +++ b/debian/libnss-mapuser.prerm @@ -4,6 +4,13 @@ set -e if [ "$1" = remove ]; then pam-auth-update --package --remove mapuser + # Undo the addition of the plugins + 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 #DEBHELPER# -- cgit v1.2.3