diff options
| author | Christian Poessinger <christian@poessinger.com> | 2021-05-02 18:14:59 +0200 |
|---|---|---|
| committer | Christian Poessinger <christian@poessinger.com> | 2021-05-02 18:14:59 +0200 |
| commit | 2ded63a0e6748018dada646691843462797cc7fc (patch) | |
| tree | ac565e7bd01c3f362028c3b834e51162eb56ea90 /debian/libnss-mapuser.prerm | |
| parent | 522e4c741de5fe5a407c6601b7f1f430c10d4cfe (diff) | |
| download | libnss-mapuser-2ded63a0e6748018dada646691843462797cc7fc.tar.gz libnss-mapuser-2ded63a0e6748018dada646691843462797cc7fc.zip | |
Update package to 1.1.0-cl3u3
Diffstat (limited to 'debian/libnss-mapuser.prerm')
| -rw-r--r-- | debian/libnss-mapuser.prerm | 7 |
1 files changed, 7 insertions, 0 deletions
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# |
