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
06593a546c
commit
422be53960
|
@ -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