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:
btpka3 2015-01-30 12:01:21 +08:00 committed by Greg Wilkins
parent 06593a546c
commit 422be53960
1 changed files with 1 additions and 1 deletions

View File

@ -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" ]