martin-g commented on code in PR #11:
URL: https://github.com/apache/spark-docker/pull/11#discussion_r996485107
##########
3.3.0/scala2.12-java11-python3-r-ubuntu/entrypoint.sh:
##########
@@ -103,5 +103,13 @@ case "$1" in
;;
esac
+switch_spark_if_root() {
+ if [ $(id -u) -ne 0 ]; then
Review Comment:
IMO it would be simpler as:
```bash
if [ $(id -u) -eq 0 ]; then
echo gosu spark
fi
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]