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>
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`
22 -INSTALLUSER={{installuser}}
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