2018-09-01 16:27:39 +02:00
|
|
|
if [ -z "$(grep ^ejabberd /etc/group)" -o -z "$(grep ^ejabberd /etc/passwd)" ]; then
|
|
|
|
groupadd -g 203 ejabberd
|
|
|
|
useradd -g 203 -u 203 -d /var/lib/ejabberd -s /bin/bash ejabberd
|
|
|
|
fi
|
|
|
|
|
2018-09-01 16:18:19 +02:00
|
|
|
chown ejabberd:ejabberd var/lib/ejabberd var/lock/ejabberdctl var/log/ejabberd
|
|
|
|
chmod 0750 var/lib/ejabberd var/lock/ejabberdctl var/log/ejabberd
|