aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}