From 55cf3d352b7660c8c35896903de17aed06a5e3ef Mon Sep 17 00:00:00 2001 From: Webb Scales Date: Mon, 11 Jul 2022 11:52:30 -0400 Subject: [PATCH] Don't create a subshell for Server pip-install --- server/rpm/pbench-server.spec.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/rpm/pbench-server.spec.j2 b/server/rpm/pbench-server.spec.j2 index 395fc3e1f6..b259f5aa56 100644 --- a/server/rpm/pbench-server.spec.j2 +++ b/server/rpm/pbench-server.spec.j2 @@ -106,7 +106,7 @@ python3 -m pip install --upgrade pip 2>&1 > /%{installdir}/pip3-install.log # The newly installed pip3 should be able to deal with the following. # N.B. We redirect both stdout and stderr into the log here but append the output to # the already existing file. -(su pbench -c "python3 -m pip --no-cache-dir install --user --no-warn-script-location -r /%{installdir}/requirements.txt" 2>&1) >> /%{installdir}/pip3-install.log +su pbench -c "python3 -m pip --no-cache-dir install --user --no-warn-script-location -r /%{installdir}/requirements.txt" >> /%{installdir}/pip3-install.log 2>&1 # The `site` package is Python magic; it runs automatically when Python starts, # and builds `sys.path`.