mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-08-20 14:13:17 +00:00
Fixed noise with picking up JAVA_TOOL_OPTIONS (#3599)
This commit is contained in:
@@ -122,6 +122,9 @@ addToProxyArgs http.proxyHost "${PROXY_HOST:-}"
|
|||||||
addToProxyArgs http.proxyPort "${PROXY_PORT:-}"
|
addToProxyArgs http.proxyPort "${PROXY_PORT:-}"
|
||||||
addToProxyArgs http.nonProxyHosts "${PROXY_NON_PROXY_HOSTS:-}"
|
addToProxyArgs http.nonProxyHosts "${PROXY_NON_PROXY_HOSTS:-}"
|
||||||
export JAVA_TOOL_OPTIONS+=" ${proxyArgs[*]}"
|
export JAVA_TOOL_OPTIONS+=" ${proxyArgs[*]}"
|
||||||
|
if [[ $JAVA_TOOL_OPTIONS =~ ^[[:blank:]]*$ ]]; then
|
||||||
|
export -n JAVA_TOOL_OPTIONS
|
||||||
|
fi
|
||||||
|
|
||||||
function fixJavaPath() {
|
function fixJavaPath() {
|
||||||
# Some Docker management UIs grab all the image declared variables and present them for configuration.
|
# Some Docker management UIs grab all the image declared variables and present them for configuration.
|
||||||
|
|||||||
Reference in New Issue
Block a user