Fix #1763
This commit is contained in:
parent
d4201b718f
commit
818cad59b7
|
@ -468,10 +468,10 @@ case "$ACTION" in
|
||||||
chown "$JETTY_USER" "$JETTY_PID"
|
chown "$JETTY_USER" "$JETTY_PID"
|
||||||
# FIXME: Broken solution: wordsplitting, pathname expansion, arbitrary command execution, etc.
|
# FIXME: Broken solution: wordsplitting, pathname expansion, arbitrary command execution, etc.
|
||||||
su - "$JETTY_USER" $SU_SHELL -c "
|
su - "$JETTY_USER" $SU_SHELL -c "
|
||||||
cd "$JETTY_BASE"
|
cd \"$JETTY_BASE\"
|
||||||
exec ${RUN_CMD[*]} start-log-file="$JETTY_LOGS/start.log" > /dev/null &
|
exec ${RUN_CMD[*]} start-log-file=\"$JETTY_LOGS/start.log\" > /dev/null &
|
||||||
disown \$!
|
disown \$!
|
||||||
echo \$! > '$JETTY_PID'"
|
echo \$! > \"$JETTY_PID\""
|
||||||
else
|
else
|
||||||
"${RUN_CMD[@]}" > /dev/null &
|
"${RUN_CMD[@]}" > /dev/null &
|
||||||
disown $!
|
disown $!
|
||||||
|
|
Loading…
Reference in New Issue