175f6a0ee8
Major changes since 2.1.13: * Huge improvements regarding performances * Optimized memory consumption * Clean code representation of xmlel records Release notes (yet?) unavailable, changelog points at bug tracker: https://support.process-one.net/secure/IssueNavigator.jspa?reset=true&jqlQuery=project+%3D+EJAB+AND+fixVersion+%3D+%22ejabberd+13.10%22
45 lines
1.5 KiB
Text
45 lines
1.5 KiB
Text
$NetBSD: patch-ae,v 1.7 2013/10/11 13:32:25 fhajny Exp $
|
|
|
|
Default locations.
|
|
--- ejabberdctl.template.orig 2013-09-27 09:19:22.000000000 +0000
|
|
+++ ejabberdctl.template
|
|
@@ -23,7 +23,7 @@ if [ "$INSTALLUSER" != "" ] ; then
|
|
EXEC_CMD="false"
|
|
for GID in `id -G`; do
|
|
if [ $GID -eq 0 ] ; then
|
|
- EXEC_CMD="su $INSTALLUSER -p -c"
|
|
+ EXEC_CMD="su $INSTALLUSER -m -c"
|
|
fi
|
|
done
|
|
if [ `id -g` -eq `id -g $INSTALLUSER` ] ; then
|
|
@@ -68,10 +68,10 @@ if [ "$EJABBERD_CONFIG_PATH" = "" ] ; th
|
|
EJABBERD_CONFIG_PATH=$ETCDIR/ejabberd.yml
|
|
fi
|
|
if [ "$LOGS_DIR" = "" ] ; then
|
|
- LOGS_DIR={{localstatedir}}/log/ejabberd
|
|
+ LOGS_DIR=@EJABBERD_LOGDIR@
|
|
fi
|
|
if [ "$SPOOLDIR" = "" ] ; then
|
|
- SPOOLDIR={{localstatedir}}/lib/ejabberd
|
|
+ SPOOLDIR=@EJABBERD_DB@
|
|
fi
|
|
if [ "$EJABBERD_DOC_PATH" = "" ] ; then
|
|
EJABBERD_DOC_PATH={{docdir}}
|
|
@@ -82,7 +82,7 @@ if [ "$ERLANG_NODE_ARG" != "" ] ; then
|
|
fi
|
|
if [ "{{release}}" != "true" ] ; then
|
|
if [ "$EJABBERDDIR" = "" ] ; then
|
|
- EJABBERDDIR={{libdir}}/ejabberd
|
|
+ EJABBERDDIR={{libdir}}/erlang/lib/@DISTNAME@
|
|
fi
|
|
if [ "$EJABBERD_EBIN_PATH" = "" ] ; then
|
|
EJABBERD_EBIN_PATH=$EJABBERDDIR/ebin
|
|
@@ -261,7 +261,7 @@ ctl()
|
|
# using flock if available. Expects a linux-style
|
|
# flock that can lock a file descriptor.
|
|
MAXCONNID=100
|
|
- CONNLOCKDIR={{localstatedir}}/lock/ejabberdctl
|
|
+ CONNLOCKDIR=@EJABBERD_PIDDIR@
|
|
FLOCK='/usr/bin/flock'
|
|
if [ ! -x "$FLOCK" ] || [ ! -d "$CONNLOCKDIR" ] ; then
|
|
JOT='/usr/bin/jot'
|