File: libpam-ldapd.prerm

package info (click to toggle)
nss-pam-ldapd 0.9.10-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 4,768 kB
  • sloc: ansic: 16,287; sh: 6,589; python: 3,368; xml: 1,925; makefile: 294; exp: 146
file content (14 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

# remove the PAM profile unless there are more than one instances
# of libpam-ldapd installed (multi-arch)
if [ "$1" = "remove" ] && [ "$(dpkg-query -W libpam-ldapd 2> /dev/null | wc -l)" = 1 ]
then
  pam-auth-update --package --remove ldap
fi

#DEBHELPER#

exit 0