Pass EXTRA_ARGS to run.sh (fixes #2714) (#2715)

This commit is contained in:
Robin Brämer 2024-03-13 13:24:56 +01:00 committed by GitHub
parent 3d2b88effd
commit eec264c8ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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