Allow JETTY_USER to run without `su`
https://github.com/eclipse/jetty.project/pull/35 Signed-off-by: btpka3 <btpka3@163.com>
This commit is contained in:
parent
3fd8a2e666
commit
6492ef7c78
|
@ -445,7 +445,7 @@ case "$ACTION" in
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [ -n "$JETTY_USER" ]
|
||||
if [ -n "$JETTY_USER" ] && [ `whoami` != "$JETTY_USER" ]
|
||||
then
|
||||
unset SU_SHELL
|
||||
if [ "$JETTY_SHELL" ]
|
||||
|
|
Loading…
Reference in New Issue