25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix init script: use getent to allow ejabberd user from external authentication sources (LDAP)

This commit is contained in:
Nathan Bruning 2014-09-17 21:28:50 +02:00
parent c18413c52b
commit 29a841d8c7

View File

@ -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
}