## arg 1:  the new package version
post_install() {
  if ! getent passwd _rspamd >/dev/null; then
    useradd -k /dev/null -r -m -c 'rspam daemon' -d /var/lib/rspamd -s /sbin/nologin _rspamd
    passwd -l _rspamd >/dev/null
  fi
}

## arg 1:  the old package version
post_remove() {
  if getent passwd _rspamd >/dev/null; then
    userdel _rspamd
  fi
}

# vim:set ts=2 sw=2 et:
