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

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

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