package/x11r7/xdriver_xf86-video-openchrome: bump version to 0.5.0
[buildroot-gz.git] / package / ejabberd / 0007-fix-ejabberdctl.patch
blob36aa3a707f0a555c53abbdc75d6d286b7c73649b
1 From 53d7d654026afa163a55b860e33c6901129e8dc1 Mon Sep 17 00:00:00 2001
2 From: Johan Oudinet <johan.oudinet@gmail.com>
3 Date: Wed, 20 Jan 2016 09:35:07 -0500
4 Subject: [PATCH] fix ejabberdctl
6 Change default values so ejabberdctl run commands as ejabberd user
7 Also add a way for the user to change default values.
9 Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
10 ---
11 ejabberdctl.template | 5 ++++-
12 1 file changed, 4 insertions(+), 1 deletion(-)
14 diff --git a/ejabberdctl.template b/ejabberdctl.template
15 index f65c21f..ff9225f 100755
16 --- a/ejabberdctl.template
17 +++ b/ejabberdctl.template
18 @@ -14,9 +14,12 @@ SCRIPT_DIR=`cd ${0%/*} && pwd`
19 ERL={{erl}}
20 IEX={{bindir}}/iex
21 EPMD={{bindir}}/epmd
22 -INSTALLUSER={{installuser}}
23 +INSTALLUSER=ejabberd
24 ERL_LIBS={{libdir}}
26 +# Read default configuration file if present
27 +[ ! -r /etc/default/ejabberd ] || . /etc/default/ejabberd
29 # check the proper system user is used if defined
30 if [ "$INSTALLUSER" != "" ] ; then
31 EXEC_CMD="false"
32 --
33 2.5.0