commit | 422be53960e02053c690953201cf9282932329ef | [log] [tgz] |
---|---|---|
author | btpka3 <btpka3@163.com> | Fri Jan 30 12:01:21 2015 +0800 |
committer | Greg Wilkins <gregw@webtide.com> | Tue Oct 13 08:30:42 2015 +1100 |
tree | 4c0f6be16181648f05e382bc39d0ee0979b266cc | |
parent | 06593a546c594a990d6008b0a7e5a6a21414893b [diff] |
Allow JETTY_USER to run without `su` https://github.com/eclipse/jetty.project/pull/35 Signed-off-by: btpka3 <btpka3@163.com>
diff --git a/jetty-distribution/src/main/resources/bin/jetty.sh b/jetty-distribution/src/main/resources/bin/jetty.sh index 8cbb41c..043d205 100755 --- a/jetty-distribution/src/main/resources/bin/jetty.sh +++ b/jetty-distribution/src/main/resources/bin/jetty.sh
@@ -445,7 +445,7 @@ exit 1 fi - if [ -n "$JETTY_USER" ] + if [ -n "$JETTY_USER" ] && [ `whoami` != "$JETTY_USER" ] then unset SU_SHELL if [ "$JETTY_SHELL" ]