Merge branch 'develop' of github.com:martini/zammad into develop
This commit is contained in:
commit
defa71b371
2 changed files with 14 additions and 9 deletions
5
INSTALL.md
Normal file
5
INSTALL.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Installation
|
||||||
|
============
|
||||||
|
|
||||||
|
* Prepare yum repository for Elasticsearch. Use then manual described [https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html#_yum](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html#_yum)
|
||||||
|
*
|
|
@ -70,15 +70,15 @@ export OTRSUSER=otrs
|
||||||
# cat /opt/otrs/RELEASE|grep VERSION|sed 's/VERSION = //'|sed 's/ /-/g' > /tmp/otrs-old.tmp
|
# cat /opt/otrs/RELEASE|grep VERSION|sed 's/VERSION = //'|sed 's/ /-/g' > /tmp/otrs-old.tmp
|
||||||
#fi
|
#fi
|
||||||
# useradd
|
# useradd
|
||||||
export OTRSUSER=zammad
|
export ZUSER=zammad
|
||||||
echo -n "Check OTRS user ... "
|
echo -n "Check Zammad user ... "
|
||||||
#if id $OTRSUSER >/dev/null 2>&1; then
|
if id $ZUSER >/dev/null 2>&1; then
|
||||||
# echo "$OTRSUSER exists."
|
echo "$ZUSER exists."
|
||||||
# # update home dir
|
# update home dir
|
||||||
# usermod -d /opt/otrs $OTRSUSER
|
usermod -d /opt/zammads $ZUSER
|
||||||
#else
|
else
|
||||||
# useradd $OTRSUSER -d /opt/otrs/ -s /bin/bash -g zammad -c 'Zammad user' && echo "$OTRSUSER added."
|
useradd $ZUSER -d /opt/zammad -s /bin/bash -g zammad -c 'Zammad user' && echo "$ZUSER added."
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
|
Loading…
Reference in a new issue