]> granicus.if.org Git - icinga2/commitdiff
Fix group detection on el5.
authorMichael Friedrich <michael.friedrich@netways.de>
Mon, 7 Oct 2013 15:25:30 +0000 (17:25 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 7 Oct 2013 15:25:30 +0000 (17:25 +0200)
m4/ax_icinga_user_group.m4

index 71998689e00c7680d3481292c411c1febd66d5d4..531aedfee21b468e1a86c31b045cb36f4cb254c6 100644 (file)
@@ -30,7 +30,7 @@ AC_DEFUN([ACICINGA_CHECK_GROUP],[
   x=$1
   y=$2
   AC_MSG_CHECKING([if $y group $x exists])
-  AS_IF([ $GREP -q "^$x:" /etc/group ],
+  AS_IF([ id -g $x ],
     [ AC_MSG_RESULT([found]) ],
     [ AC_MSG_ERROR([not found]) ])
 ])