summaryrefslogtreecommitdiff
path: root/community/nss-pam-ldapd/nss-pam-ldapd.install
blob: e4b0a1f1d4bc3a047f4d6f68948f87e3e30b48f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
post_install() {
    getent passwd nslcd >> /dev/null || useradd -r -M -U -d /var/run/nslcd -s /bin/false nslcd
}

post_upgrade() {
    getent passwd nslcd >> /dev/null || useradd -r -M -U -d /var/run/nslcd -s /bin/false nslcd
}

pre_remove() {
    userdel nslcd >/dev/null 2>&1 || true
}