From 38c8c75248bae04fb8a9584281f670570df00e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S?= Date: Tue, 12 Feb 2019 12:48:28 +0100 Subject: [PATCH] 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`. --- evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 4364a2a..da7db25 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -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