mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-09-20 14:11:55 +00:00
Setup MEMORY variables earlier to allow use in Spigot build (#1779)
This commit is contained in:
parent
61592d5c3e
commit
8f5cc315d9
2 changed files with 5 additions and 4 deletions
|
@ -20,6 +20,11 @@ IFS=$'\n\t'
|
||||||
: "${RCON_PORT:=25575}"
|
: "${RCON_PORT:=25575}"
|
||||||
export RCON_PASSWORD RCON_PORT
|
export RCON_PASSWORD RCON_PORT
|
||||||
|
|
||||||
|
: "${MEMORY=1G}"
|
||||||
|
: "${INIT_MEMORY=${MEMORY}}"
|
||||||
|
: "${MAX_MEMORY=${MEMORY}}"
|
||||||
|
export MEMORY INIT_MEMORY MAX_MEMORY
|
||||||
|
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
|
|
||||||
isDebugging && set -x
|
isDebugging && set -x
|
||||||
|
|
|
@ -113,10 +113,6 @@ if [[ ${GUI,,} = false ]]; then
|
||||||
EXTRA_ARGS+=" nogui"
|
EXTRA_ARGS+=" nogui"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
: "${MEMORY=1G}"
|
|
||||||
: "${INIT_MEMORY=${MEMORY}}"
|
|
||||||
: "${MAX_MEMORY=${MEMORY}}"
|
|
||||||
|
|
||||||
expandedDOpts=
|
expandedDOpts=
|
||||||
if [ -n "$JVM_DD_OPTS" ]; then
|
if [ -n "$JVM_DD_OPTS" ]; then
|
||||||
for dopt in $JVM_DD_OPTS
|
for dopt in $JVM_DD_OPTS
|
||||||
|
|
Loading…
Reference in a new issue