summaryrefslogtreecommitdiff
path: root/user/rspamd/rspamd.pre-install
diff options
context:
space:
mode:
authorLee Starnes <lee@canned-death.us>2020-09-19 00:12:15 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2020-09-19 00:12:15 +0000
commitcdd03f807a0d8346bc0fe7d1187ee0befe356624 (patch)
treec93df99f16f224157b252f5337e7e421d07888f4 /user/rspamd/rspamd.pre-install
parentdb49432374e0e3ed11d99c831d1349f3ddc74a33 (diff)
downloadpackages-cdd03f807a0d8346bc0fe7d1187ee0befe356624.tar.gz
packages-cdd03f807a0d8346bc0fe7d1187ee0befe356624.tar.bz2
packages-cdd03f807a0d8346bc0fe7d1187ee0befe356624.tar.xz
packages-cdd03f807a0d8346bc0fe7d1187ee0befe356624.zip
user/rspamd: import from Alpine, disable JIT, and use lua5.3
Diffstat (limited to 'user/rspamd/rspamd.pre-install')
-rw-r--r--user/rspamd/rspamd.pre-install6
1 files changed, 6 insertions, 0 deletions
diff --git a/user/rspamd/rspamd.pre-install b/user/rspamd/rspamd.pre-install
new file mode 100644
index 000000000..b2f35bdd8
--- /dev/null
+++ b/user/rspamd/rspamd.pre-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+groupadd -r rspamd 2>/dev/null
+useradd -r -d /var/lib/rspamd -s /sbin/nologin -G rspamd -g rspamd rspamd 2>/dev/null
+
+exit 0