mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
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…
x
Reference in New Issue
Block a user