Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/debian/libnss-ldapd.postrm
blob: 6fa4004b90a5a24f3a7aba6f1929aea673eb61c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

CONFFILE="/etc/nss-ldapd.conf"

# remove /var/run/nslcd directory
rm -rf /var/run/nslcd

# remove our configuration file (not a conffile) on purge manually
if [ "$1" = "purge" ]
then
  rm -f "$CONFFILE"
fi

# call ldconfig to signal the removal of our NSS library
if [ "$1" = "remove" ]
then
  ldconfig
fi

#DEBHELPER#