mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
Redirect getent/dscl output.
This commit is contained in:
parent
13b8edd239
commit
6161c2b10d
@ -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([ getent passwd $x || dscl . -read /Users/$x ],
|
AS_IF([ getent passwd $x >/dev/null 2>&1 || dscl . -read /Users/$x >/dev/null 2>&1 ],
|
||||||
[ AC_MSG_RESULT([found]) ],
|
[ AC_MSG_RESULT([found]) ],
|
||||||
[ AC_MSG_ERROR([not found]) ])
|
[ AC_MSG_ERROR([not found]) ])
|
||||||
])
|
])
|
||||||
@ -30,7 +30,7 @@ AC_DEFUN([ACICINGA_CHECK_GROUP],[
|
|||||||
x=$1
|
x=$1
|
||||||
y=$2
|
y=$2
|
||||||
AC_MSG_CHECKING([if $y group $x exists])
|
AC_MSG_CHECKING([if $y group $x exists])
|
||||||
AS_IF([ getent group $x || dscl . -read /Groups/$x ],
|
AS_IF([ getent group $x >/dev/null 2>&1 || dscl . -read /Groups/$x >/dev/null 2>&1 ],
|
||||||
[ 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