File: nslcd.postrm

package info (click to toggle)
nss-pam-ldapd 0.9.4-2~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 4,692 kB
  • sloc: ansic: 15,761; sh: 6,269; python: 3,264; xml: 1,802; makefile: 281; exp: 146
file content (23 lines) | stat: -rw-r--r-- 631 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -e

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

# remove /var/run/nslcd directory on remove unless an nslcd implementation
# is still installed (e.g. when switching between nslcd and pynslcd)
if [ "$1" = "remove" ] && ! [ -x /usr/sbin/nslcd ] && ! [ -x /usr/sbin/pynslcd ]
then
  rm -rf /var/run/nslcd
fi

# remove our configuration file (not a conffile) on purge unless an nslcd
# implementation is still installed (e.g. when switching between nslcd and
# pynslcd)
if [ "$1" = "purge" ] && ! [ -x /usr/sbin/nslcd ] && ! [ -x /usr/sbin/pynslcd ]
then
  rm -f "$CONFFILE" "$OCONFFILE"
fi

#DEBHELPER#