]> granicus.if.org Git - ejabberd/commitdiff
Fix init script: use getent to allow ejabberd user from external authentication sourc...
authorNathan Bruning <nathan.bruning@iperity.com>
Wed, 17 Sep 2014 19:28:50 +0000 (21:28 +0200)
committerNathan Bruning <nathan.bruning@iperity.com>
Wed, 17 Sep 2014 19:28:50 +0000 (21:28 +0200)
ejabberd.init.template

index ef691e4b30d47be85df283ba4e0d6ba8c12aad40..90d75404f850cca1e242dcfd6e096056772c6a47 100644 (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
 }