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 700B

123456789101112131415161718192021222324252627282930313233343536
  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. chown $SERVER_USER: $SERVER_HOME
  18. chown $SERVER_USER:adm $SERVER_LOG
  19. chmod g+s $SERVER_LOG
  20. ;;
  21. abort-*)
  22. ;;
  23. *)
  24. echo "postinst called with unknown argument \`$1'" >&2
  25. exit 1
  26. ;;
  27. esac
  28. #DEBHELPER#
  29. exit 0