From bdc16a3a8305b98ea8aa2ffb997e94a656d4be1a Mon Sep 17 00:00:00 2001 From: Lachlan Roberts Date: Tue, 15 Aug 2023 18:51:23 +1000 Subject: [PATCH] eval then exec terminating commands in docker-entrypoint.sh Signed-off-by: Lachlan Roberts --- docker-entrypoint.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 48830eef..e90afb9f 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -63,8 +63,7 @@ if expr "$*" : 'java .*/start\.jar.*$' >/dev/null ; then shift # The first $JAVA_OPTIONS is for the JVM which will do the --dry-run, # the second one is used when generating the --dry-run output. - echo "exec " $JAVA $JAVA_OPTIONS "$@" $JAVA_OPTIONS $JETTY_PROPERTIES > $JETTY_BASE/jetty.exec - . $JETTY_BASE/jetty.exec + eval "exec $JAVA $JAVA_OPTIONS \"\$@\" $JAVA_OPTIONS $JETTY_PROPERTIES" esac done