aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ejabberd/ejabberd.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'testing/ejabberd/ejabberd.post-install')
-rwxr-xr-xtesting/ejabberd/ejabberd.post-install8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/ejabberd/ejabberd.post-install b/testing/ejabberd/ejabberd.post-install
new file mode 100755
index 0000000000..817314e97d
--- /dev/null
+++ b/testing/ejabberd/ejabberd.post-install
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+groupadd jabber
+useradd -G jabber -d /var/lib/ejabberd ejabberd
+chown -R ejabberd.jabber /var/log/ejabberd
+chown -R ejabberd.jabber /var/spool/ejabberd
+chown -R ejabberd.jabber /var/lib/ejabberd
+chown root:ejabberd /etc/ejabberd/ejabberd.cfg /etc/ejabberd/ejabberdctl.cfg /etc/ejabberd