summaryrefslogtreecommitdiff
path: root/user/prosody/prosody.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'user/prosody/prosody.pre-install')
-rw-r--r--user/prosody/prosody.pre-install11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/prosody/prosody.pre-install b/user/prosody/prosody.pre-install
new file mode 100644
index 000000000..39d9cfadd
--- /dev/null
+++ b/user/prosody/prosody.pre-install
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+addgroup -S prosody 2>/dev/null
+adduser -S -D \
+ -h /var/lib/prosody \
+ -s /sbin/nologin \
+ -G prosody \
+ -g "Prosody XMPP Server" \
+ prosody 2>/dev/null
+
+exit 0