mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
parent
f2d7798f68
commit
28bc5eab7d
@ -21,7 +21,7 @@ AC_DEFUN([ACICINGA_CHECK_USER],[
|
||||
x=$1
|
||||
y=$2
|
||||
AC_MSG_CHECKING([if $y user $x exists])
|
||||
AS_IF([ id -u $x ],
|
||||
AS_IF([ getent passwd $x || dscl . -read /Users/$x ],
|
||||
[ AC_MSG_RESULT([found]) ],
|
||||
[ AC_MSG_ERROR([not found]) ])
|
||||
])
|
||||
@ -30,7 +30,7 @@ AC_DEFUN([ACICINGA_CHECK_GROUP],[
|
||||
x=$1
|
||||
y=$2
|
||||
AC_MSG_CHECKING([if $y group $x exists])
|
||||
AS_IF([ id -g $x ],
|
||||
AS_IF([ getent group $x || dscl . -read /Groups/$x ],
|
||||
[ AC_MSG_RESULT([found]) ],
|
||||
[ AC_MSG_ERROR([not found]) ])
|
||||
])
|
||||
|
Loading…
x
Reference in New Issue
Block a user