mirror of
https://github.com/rspamd/rspamd.git
synced 2024-08-09 02:10:20 +02:00
35 lines
641 B
Bash
35 lines
641 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
case "$1" in
|
|
configure)
|
|
SERVER_HOME=/var/lib/rspamd
|
|
SERVER_LOG=/var/log/rspamd
|
|
SERVER_USER=_rspamd
|
|
|
|
adduser --quiet \
|
|
--system \
|
|
--group \
|
|
--home $SERVER_HOME \
|
|
--no-create-home \
|
|
--disabled-login \
|
|
--gecos "rspamd spam filtering system" \
|
|
--force-badname \
|
|
$SERVER_USER
|
|
|
|
chown $SERVER_USER: $SERVER_HOME $SERVER_LOG
|
|
;;
|
|
|
|
abort-*)
|
|
;;
|
|
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|