From: Nathan Bruning Date: Wed, 17 Sep 2014 19:28:50 +0000 (+0200) Subject: Fix init script: use getent to allow ejabberd user from external authentication sourc... X-Git-Tag: 14.12~50^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29a841d8c7300bc69cd4cf199a247eaed594041d;p=ejabberd Fix init script: use getent to allow ejabberd user from external authentication sources (LDAP) --- 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 }