Want more features on Pastebin? Sign Up, it's FREE!
Guest

nss-ldapd.install

By: benja_kern on Jul 26th, 2012  |  syntax: None  |  size: 0.26 KB  |  views: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. post_install() {
  2.   getent passwd nslcd >> /dev/null || useradd -r -M -d /var/run/nslcd -s /bin/false nslcd
  3. }
  4.  
  5. post_upgrade() {
  6.   getent passwd nslcd >> /dev/null || useradd -r -M -s /bin/false nslcd
  7. }
  8.  
  9. pre_remove() {
  10.   userdel nslcd >/dev/null 2>&1 || true
  11. }
clone this paste RAW Paste Data