[packages/ejabberd] set HOME to /home/services/jabber; otherwise ejabberd tries to access /root/.erlang.cookie
arekm
arekm at pld-linux.org
Wed Oct 15 09:39:59 CEST 2014
commit 95eb057731dae8981a464b7ff3f6b0fb64e596ea
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Oct 15 09:39:56 2014 +0200
set HOME to /home/services/jabber; otherwise ejabberd tries to access /root/.erlang.cookie
ejabberd-paths.patch | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/ejabberd-paths.patch b/ejabberd-paths.patch
index b120e8f..611d568 100644
--- a/ejabberd-paths.patch
+++ b/ejabberd-paths.patch
@@ -1,7 +1,15 @@
diff -urN ejabberd-14.07.org/ejabberdctl.template ejabberd-14.07/ejabberdctl.template
--- ejabberd-14.07.org/ejabberdctl.template 2014-07-22 17:42:49.000000000 +0200
-+++ ejabberd-14.07/ejabberdctl.template 2014-10-15 09:32:59.091076905 +0200
-@@ -22,7 +22,7 @@
++++ ejabberd-14.07/ejabberdctl.template 2014-10-15 09:38:33.692517899 +0200
+@@ -8,6 +8,7 @@
+ ERL_MAX_ETS_TABLES=1400
+ FIREWALL_WINDOW=""
+ ERLANG_NODE=ejabberd at localhost
++HOME=/home/services/jabber; export HOME
+
+ # define default environment variables
+ SCRIPT_DIR=`cd ${0%/*} && pwd`
+@@ -22,7 +23,7 @@
EXEC_CMD="false"
for GID in `id -G`; do
if [ $GID -eq 0 ] ; then
@@ -10,7 +18,7 @@ diff -urN ejabberd-14.07.org/ejabberdctl.template ejabberd-14.07/ejabberdctl.tem
fi
done
if [ `id -g` -eq `id -g $INSTALLUSER` ] ; then
-@@ -55,7 +55,7 @@
+@@ -55,7 +56,7 @@
# Define ejabberd variable if they have not been defined from the command line
if [ "$ETC_DIR" = "" ] ; then
@@ -19,7 +27,7 @@ diff -urN ejabberd-14.07.org/ejabberdctl.template ejabberd-14.07/ejabberdctl.tem
fi
if [ "$EJABBERDCTL_CONFIG_PATH" = "" ] ; then
EJABBERDCTL_CONFIG_PATH=$ETC_DIR/ejabberdctl.cfg
-@@ -103,7 +103,7 @@
+@@ -103,7 +104,7 @@
SASL_LOG_PATH=$LOGS_DIR/erlang.log
DATETIME=`date "+%Y%m%d-%H%M%S"`
ERL_CRASH_DUMP=$LOGS_DIR/erl_crash_$DATETIME.dump
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ejabberd.git/commitdiff/95eb057731dae8981a464b7ff3f6b0fb64e596ea
More information about the pld-cvs-commit
mailing list