This commit is contained in:
milisbir 2018-09-01 17:24:07 +03:00
parent d4bbc94d5c
commit eefb2fae16
3 changed files with 5 additions and 6 deletions

View File

@ -0,0 +1,4 @@
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

View File

@ -1,7 +1,2 @@
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
chown ejabberd:ejabberd var/lib/ejabberd var/lock/ejabberdctl var/log/ejabberd chown ejabberd:ejabberd var/lib/ejabberd var/lock/ejabberdctl var/log/ejabberd
chmod 0750 var/lib/ejabberd var/lock/ejabberdctl var/log/ejabberd chmod 0750 var/lib/ejabberd var/lock/ejabberdctl var/log/ejabberd

View File

@ -1,7 +1,7 @@
# Tanım: Jabber server written in Erlang # Tanım: Jabber server written in Erlang
# URL: http://www.ejabberd.im/ # URL: http://www.ejabberd.im/
# Paketçi: milisarge # Paketçi: milisarge
# Gerekler: git rebar3 erlang sqlite # Gerekler: yaml git rebar3 erlang sqlite
# Grup: # Grup:
isim=ejabberd isim=ejabberd