mirror of https://github.com/Icinga/icinga2.git
Fix: ACICINGA_CHECK_USER doesn't work on OS X or when using NIS.
This commit is contained in:
parent
cd4d3e6e8e
commit
09db65fcd0
|
@ -21,7 +21,7 @@ AC_DEFUN([ACICINGA_CHECK_USER],[
|
||||||
x=$1
|
x=$1
|
||||||
y=$2
|
y=$2
|
||||||
AC_MSG_CHECKING([if $y user $x exists])
|
AC_MSG_CHECKING([if $y user $x exists])
|
||||||
AS_IF([ $GREP -q "^$x:" /etc/passwd ],
|
AS_IF([ id -u $x ],
|
||||||
[ AC_MSG_RESULT([found]) ],
|
[ AC_MSG_RESULT([found]) ],
|
||||||
[ AC_MSG_ERROR([not found]) ])
|
[ AC_MSG_ERROR([not found]) ])
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue