From eec264c8ca92824674a183d894b25600828eae7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Br=C3=A4mer?= Date: Wed, 13 Mar 2024 13:24:56 +0100 Subject: [PATCH] Pass EXTRA_ARGS to run.sh (fixes #2714) (#2715) --- scripts/start-finalExec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/start-finalExec b/scripts/start-finalExec index a007def8..1e96b12b 100755 --- a/scripts/start-finalExec +++ b/scripts/start-finalExec @@ -294,7 +294,10 @@ elif [[ $SERVER =~ run.sh ]]; then echo "SETUP_ONLY: bash ${SERVER}" exit fi - exec mc-server-runner "${mcServerRunnerArgs[@]}" --shell bash "${SERVER}" + if isTrue "${DEBUG_EXEC}"; then + set -x + fi + exec mc-server-runner "${mcServerRunnerArgs[@]}" --shell bash "${SERVER}" "${EXTRA_ARGS}" else # If we have a bootstrap.txt file... feed that in to the server stdin if [ -f /data/bootstrap.txt ]; then