Skip to content

Commit 9e22e21

Browse files
author
PDallig
committed
Correct entrypoint.sh for Openshift
1 parent fb3a7b8 commit 9e22e21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if ! getent passwd "$myuid" &> /dev/null; then
1616
NSS_WRAPPER_GROUP="$(mktemp)"
1717
export LD_PRELOAD="$wrapper" NSS_WRAPPER_PASSWD NSS_WRAPPER_GROUP
1818
mygid="$(id -g)"
19-
printf 'spark:x:%s:%s:${SPARK_USER_NAME:-anonymous uid}:%s:/bin/false\n' "$myuid" "$mygid" "$SPARK_HOME" > "$NSS_WRAPPER_PASSWD"
19+
printf 'spark:x:%s:%s:%s:%s:/bin/false\n' "$myuid" "$mygid" "${SPARK_USER_NAME:-anonymous uid}" "$SPARK_HOME" > "$NSS_WRAPPER_PASSWD"
2020
printf 'spark:x:%s:\n' "$mygid" > "$NSS_WRAPPER_GROUP"
2121
break
2222
fi

0 commit comments

Comments
 (0)