This commit is contained in:
milisbir 2018-09-01 17:41:29 +03:00
parent f46ce59b93
commit 4a482a43ea
1 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@ if [ -z "$(grep ^ejabberd /etc/group)" -o -z "$(grep ^ejabberd /etc/passwd)" ];
groupadd -g 203 ejabberd
useradd -g 203 -u 203 -d /var/lib/ejabberd -s /bin/bash ejabberd
fi
chown ejabberd:ejabberd var/lib/ejabberd var/lock/ejabberdctl var/log/ejabberd
chmod 0750 var/lib/ejabberd var/lock/ejabberdctl var/log/ejabberd
mkdir -p /var/lock/ejabberdctl
mkdir -p /var/lib/ejabberd
chown ejabberd:ejabberd /var/lib/ejabberd /var/lock/ejabberdctl /var/log/ejabberd
chmod 0750 /var/lib/ejabberd /var/lock/ejabberdctl /var/log/ejabberd