aboutsummaryrefslogtreecommitdiff
path: root/package/ejabberd/0007-fix-ejabberdctl.patch
diff options
context:
space:
mode:
authorGravatar Frank Hunleth <fhunleth@troodon-software.com>2016-02-21 17:00:09 -0500
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-21 23:30:14 +0100
commitc3deb953391f2ff67247fedbe0b5b6627fcd8f51 (patch)
tree55baf0ca20bc11388fab559e3faa257b62e2466e /package/ejabberd/0007-fix-ejabberdctl.patch
parent47da40e1d9f3bcad8635d563ae04e56597b8ca9e (diff)
downloadbuildroot-c3deb953391f2ff67247fedbe0b5b6627fcd8f51.tar.gz
buildroot-c3deb953391f2ff67247fedbe0b5b6627fcd8f51.tar.bz2
ejabberd: bump to version 16.01
Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/ejabberd/0007-fix-ejabberdctl.patch')
-rw-r--r--package/ejabberd/0007-fix-ejabberdctl.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/ejabberd/0007-fix-ejabberdctl.patch b/package/ejabberd/0007-fix-ejabberdctl.patch
new file mode 100644
index 0000000000..36aa3a707f
--- /dev/null
+++ b/package/ejabberd/0007-fix-ejabberdctl.patch
@@ -0,0 +1,34 @@
+From 53d7d654026afa163a55b860e33c6901129e8dc1 Mon Sep 17 00:00:00 2001
+From: Johan Oudinet <johan.oudinet@gmail.com>
+Date: Wed, 20 Jan 2016 09:35:07 -0500
+Subject: [PATCH] fix ejabberdctl
+
+Change default values so ejabberdctl run commands as ejabberd user
+Also add a way for the user to change default values.
+
+Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
+---
+ ejabberdctl.template | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/ejabberdctl.template b/ejabberdctl.template
+index f65c21f..ff9225f 100755
+--- a/ejabberdctl.template
++++ b/ejabberdctl.template
+@@ -14,9 +14,12 @@ SCRIPT_DIR=`cd ${0%/*} && pwd`
+ ERL={{erl}}
+ IEX={{bindir}}/iex
+ EPMD={{bindir}}/epmd
+-INSTALLUSER={{installuser}}
++INSTALLUSER=ejabberd
+ ERL_LIBS={{libdir}}
+
++# Read default configuration file if present
++[ ! -r /etc/default/ejabberd ] || . /etc/default/ejabberd
++
+ # check the proper system user is used if defined
+ if [ "$INSTALLUSER" != "" ] ; then
+ EXEC_CMD="false"
+--
+2.5.0
+