• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/ejabberd/0009-fix-ejabberdctl.patch
Johan OudinetJohan Oudinet committed 4ef5bcde94e08 Jul 2015
Raw file
Source viewDiff to previous
 
1
Description: fix ejabberdctl
2
 Change default values so ejabberdctl run commands as ejabberd user
3
 Also add a way for the user to change default values.
4
Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
5
​
6
diff --git a/ejabberdctl.template b/ejabberdctl.template
7
index 79f4438..df0abba 100755
8
--- a/ejabberdctl.template
9
+++ b/ejabberdctl.template
10
@@ -14,7 +14,10 @@ SCRIPT_DIR=`cd ${0%/*} && pwd`
11
 ERL={{erl}}
12
 IEX={{bindir}}/iex
13
 EPMD={{bindir}}/epmd
14
-INSTALLUSER={{installuser}}
15
+INSTALLUSER=ejabberd
16
+
17
+# Read default configuration file if present.
18
+[ ! -r /etc/default/ejabberd ] || . /etc/default/ejabberd
19
 
20
 # check the proper system user is used if defined
21
 if [ "$INSTALLUSER" != "" ] ; then
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.