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 3fd8a2e666
commit 6492ef7c78
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" ]