forked from evolix/evocheck
IS_EVOLIX_USER: Do not use getent
Why? Because of LDAP. It is normal to have an evolix user in LDAP but not in `/etc/passwd`.
This commit is contained in:
parent
a9d26a49b4
commit
38c8c75248
|
@ -790,7 +790,7 @@ if [ -e /etc/debian_version ]; then
|
|||
fi
|
||||
|
||||
if [ "$IS_EVOLIX_USER" = 1 ]; then
|
||||
getent passwd evolix >/dev/null && echo 'IS_EVOLIX_USER FAILED!'
|
||||
grep -q "evolix:" /etc/passwd && echo 'IS_EVOLIX_USER FAILED!'
|
||||
fi
|
||||
|
||||
if [ "$IS_EVOACME_CRON" = 1 ]; then
|
||||
|
|
Loading…
Reference in a new issue