From f46ce59b9369e84f38b489dbd86b28a4551ba13e Mon Sep 17 00:00:00 2001 From: milisbir Date: Sat, 1 Sep 2018 17:27:39 +0300 Subject: [PATCH] ejabberd --- talimatname/genel/e/ejabberd/ejabberd.kos-kur | 4 ---- talimatname/genel/e/ejabberd/ejabberd.kur-kos | 5 +++++ talimatname/genel/e/ejabberd/talimat | 4 ++++ 3 files changed, 9 insertions(+), 4 deletions(-) delete mode 100644 talimatname/genel/e/ejabberd/ejabberd.kos-kur diff --git a/talimatname/genel/e/ejabberd/ejabberd.kos-kur b/talimatname/genel/e/ejabberd/ejabberd.kos-kur deleted file mode 100644 index b02753448..000000000 --- a/talimatname/genel/e/ejabberd/ejabberd.kos-kur +++ /dev/null @@ -1,4 +0,0 @@ -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 diff --git a/talimatname/genel/e/ejabberd/ejabberd.kur-kos b/talimatname/genel/e/ejabberd/ejabberd.kur-kos index e71e5c91a..a96ae3c90 100644 --- a/talimatname/genel/e/ejabberd/ejabberd.kur-kos +++ b/talimatname/genel/e/ejabberd/ejabberd.kur-kos @@ -1,2 +1,7 @@ +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 chmod 0750 var/lib/ejabberd var/lock/ejabberdctl var/log/ejabberd diff --git a/talimatname/genel/e/ejabberd/talimat b/talimatname/genel/e/ejabberd/talimat index 7b9f8728b..353e3774d 100644 --- a/talimatname/genel/e/ejabberd/talimat +++ b/talimatname/genel/e/ejabberd/talimat @@ -10,6 +10,10 @@ devir=1 kaynak=(https://github.com/processone/ejabberd/archive/$surum.tar.gz::ejabberd-$surum.tar.gz) derle() { + 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 cd "$SRC/$isim-$surum" ./autogen.sh ./configure \