Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

specify /bin/bash as the shell when starting jetty #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/default/jetty-8.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ case "$ACTION" in
touch "$JETTY_PID"
chown "$JETTY_USER" "$JETTY_PID"
# FIXME: Broken solution: wordsplitting, pathname expansion, arbitrary command execution, etc.
su - "$JETTY_USER" -c "
su -m "$JETTY_USER" -s /bin/bash -c "
exec ${RUN_CMD[*]} --daemon &
disown \$!
echo \$! > '$JETTY_PID'"
Expand Down
4 changes: 2 additions & 2 deletions templates/default/jetty-9.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ case "$ACTION" in
touch "$JETTY_PID"
chown "$JETTY_USER" "$JETTY_PID"
# FIXME: Broken solution: wordsplitting, pathname expansion, arbitrary command execution, etc.
su - "$JETTY_USER" -c "
su - "$JETTY_USER" -s /bin/bash -c "
exec ${RUN_CMD[*]} --daemon &
disown \$!
echo \$! > '$JETTY_PID'"
Expand Down Expand Up @@ -601,4 +601,4 @@ case "$ACTION" in
;;
esac

exit 0
exit 0