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:
Benoît S. 2019-02-12 12:48:28 +01:00
parent a9d26a49b4
commit 38c8c75248

View file

@ -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