aboutsummaryrefslogtreecommitdiff
path: root/ejabberd.init.template
diff options
context:
space:
mode:
authorNathan Bruning <nathan.bruning@iperity.com>2014-09-17 21:28:50 +0200
committerNathan Bruning <nathan.bruning@iperity.com>2014-09-17 21:28:50 +0200
commit29a841d8c7300bc69cd4cf199a247eaed594041d (patch)
treedaade176d22eb4aac70f7c4b356d0d8f97c38ec1 /ejabberd.init.template
parentMerge pull request #300 from weiss/resend-if-offline (diff)
Fix init script: use getent to allow ejabberd user from external authentication sources (LDAP)
Diffstat (limited to 'ejabberd.init.template')
-rw-r--r--ejabberd.init.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/ejabberd.init.template b/ejabberd.init.template
index ef691e4b3..90d75404f 100644
--- a/ejabberd.init.template
+++ b/ejabberd.init.template
@@ -24,7 +24,7 @@ test -x "$CTL" || {
echo "ERROR: ejabberd not found: $DIR"
exit 1
}
-grep ^"$USER": /etc/passwd >/dev/null || {
+getent passwd "$USER" >/dev/null || {
echo "ERROR: System user not found: $USER"
exit 2
}