You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

postinst 689B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/sh
  2. set -e
  3. case "$1" in
  4. configure)
  5. SERVER_HOME=/var/lib/rspamd
  6. SERVER_LOG=/var/log/rspamd
  7. SERVER_USER=_rspamd
  8. adduser --quiet \
  9. --system \
  10. --group \
  11. --home $SERVER_HOME \
  12. --no-create-home \
  13. --disabled-login \
  14. --gecos "rspamd spam filtering system" \
  15. --force-badname \
  16. $SERVER_USER
  17. mkdir -p $SERVER_HOME $SERVER_LOG || true
  18. chown $SERVER_USER: $SERVER_HOME $SERVER_LOG
  19. ;;
  20. abort-*)
  21. ;;
  22. *)
  23. echo "postinst called with unknown argument \`$1'" >&2
  24. exit 1
  25. ;;
  26. esac
  27. #DEBHELPER#
  28. exit 0