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 }