git.schokokeks.org
Repositories
Help
Report an Issue
keks-overlay.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
b87b2ed
Branches
Tags
master
keks-overlay.git
net-im
ejabberd
files
ejabberd-15.06-ejabberdctl.patch
add ejabberd 15.06
Hanno Böck
commited
b87b2ed
at 2015-06-25 16:28:43
ejabberd-15.06-ejabberdctl.patch
Blame
History
Raw
--- ejabberd-15.06/ejabberdctl.template 2015-06-24 11:58:37.000000000 +0200 +++ ejabberd-15.06-1/ejabberdctl.template 2015-06-25 16:17:45.660000000 +0200 @@ -15,6 +15,7 @@ IEX={{bindir}}/iex EPMD={{bindir}}/epmd INSTALLUSER={{installuser}} +SHELL=/bin/sh # check the proper system user is used if defined if [ "$INSTALLUSER" != "" ] ; then @@ -22,11 +23,11 @@ for GID in `id -G`; do if [ $GID -eq 0 ] ; then INSTALLUSER_HOME=$(getent passwd "$INSTALLUSER" | cut -d: -f6) - if [ -n "$INSTALLUSER_HOME" ] && [ ! -d "$INSTALLUSER_HOME" ] ; then + if [ -n "$INSTALLUSER_HOME" ] && [ ! -e "$INSTALLUSER_HOME" ] ; then mkdir -p "$INSTALLUSER_HOME" chown "$INSTALLUSER" "$INSTALLUSER_HOME" fi - EXEC_CMD="su $INSTALLUSER -c" + EXEC_CMD="su $INSTALLUSER -p -c" fi done if [ `id -g` -eq `id -g $INSTALLUSER` ] ; then @@ -108,6 +109,7 @@ DATETIME=`date "+%Y%m%d-%H%M%S"` ERL_CRASH_DUMP=$LOGS_DIR/erl_crash_$DATETIME.dump ERL_INETRC=$ETC_DIR/inetrc +HOME=$SPOOL_DIR # define mnesia options MNESIA_OPTS="-mnesia dir \"\\\"$SPOOL_DIR\\\"\" $MNESIA_OPTIONS" @@ -167,6 +169,8 @@ export ERL_MAX_PORTS export ERL_MAX_ETS_TABLES export CONTRIB_MODULES_PATH +export HOME +export SHELL # start server start()