From 635ff11055f594c30650e6c69ceb08174c061c9c Mon Sep 17 00:00:00 2001 From: Sagi Shnaidman Date: Mon, 22 Jul 2019 14:01:30 +0300 Subject: [PATCH] Fix nodepool container failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nodepool container fails with error message: whoami: extra operand ‘/dev/null’ Try 'whoami --help' for more information. Change-Id: I7ef5b6527eb08d00b9b27e37b5d5b5dce69bb4ef --- tools/uid_entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/uid_entrypoint.sh b/tools/uid_entrypoint.sh index 1f8acc23b..3c8d78cf8 100755 --- a/tools/uid_entrypoint.sh +++ b/tools/uid_entrypoint.sh @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -if ! whoami 2>&1 /dev/null; then +if ! whoami 2>&1 >/dev/null; then if [ -w /etc/passwd ]; then echo "${USER_NAME:-default}:x:$(id -u):0:${USER_NAME:-default} user:${HOME}:/sbin/nologin" >> /etc/passwd fi