diff options
author | root <root@rshg054.dnsready.net> | 2013-03-13 00:05:54 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-03-13 00:05:54 -0700 |
commit | 3efd178c050d911cfdff7e8d2ed4886b98b08b98 (patch) | |
tree | c0a0cc66dea0a40a0c5cbc13942fdfff8066f7a2 /community/nss-pam-ldapd/nss-pam-ldapd.install | |
parent | 9f8838d16719128121b4efde3bf6c7cc650f1801 (diff) |
Wed Mar 13 00:05:53 PDT 2013
Diffstat (limited to 'community/nss-pam-ldapd/nss-pam-ldapd.install')
-rw-r--r-- | community/nss-pam-ldapd/nss-pam-ldapd.install | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/community/nss-pam-ldapd/nss-pam-ldapd.install b/community/nss-pam-ldapd/nss-pam-ldapd.install new file mode 100644 index 000000000..a8b93f218 --- /dev/null +++ b/community/nss-pam-ldapd/nss-pam-ldapd.install @@ -0,0 +1,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 +} + |