Update getent use

The import-stx is unnecessarily listing all users while only
looking for the Jenkins user.This is problematic to users
that use VPN causing a very slow performance.

Test plan:

PASS - source import-stx
PASS - Bring up a new env with this import-stx


Story: 2010055
Task: 50138

Change-Id: Ie252b0893e92075a7016ce3b92cef839c113d8fc
Signed-off-by: Romulo Leite <romulo.leite@windriver.com>
This commit is contained in:
Romulo Leite 2024-05-21 13:56:50 -03:00 committed by Romulo Jose Lyra Leite
parent 72de5acd2a
commit dd04c3fc84
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ number_of_users () {
# Add in non-login users that might trigger a parallel build
# based on a timer, or other trigger.
if getent passwd | grep -q jenkins; then
if getent passwd jenkins; then
count=$((count+1))
fi