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:
parent
72de5acd2a
commit
dd04c3fc84
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue