mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-26 15:40:30 +00:00
Move DEBUG_MEMORY output to beginning of init (#2519)
This commit is contained in:
@@ -47,6 +47,12 @@ if [ ! -e /data/eula.txt ]; then
|
|||||||
writeEula
|
writeEula
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if isTrue "${DEBUG_MEMORY:-false}"; then
|
||||||
|
log "Memory usage and availability (in MB)"
|
||||||
|
uname -a
|
||||||
|
free -m
|
||||||
|
fi
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# Setup RCON password
|
# Setup RCON password
|
||||||
|
|
||||||
|
|||||||
@@ -192,12 +192,6 @@ if isTrue "${USE_SIMD_FLAGS}"; then
|
|||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if isTrue "${DEBUG_MEMORY}"; then
|
|
||||||
log "Memory usage and availability (in MB)"
|
|
||||||
uname -a
|
|
||||||
free -m
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ${INIT_MEMORY} || ${MAX_MEMORY} ]]; then
|
if [[ ${INIT_MEMORY} || ${MAX_MEMORY} ]]; then
|
||||||
log "Setting initial memory to ${INIT_MEMORY:=${MEMORY}} and max to ${MAX_MEMORY:=${MEMORY}}"
|
log "Setting initial memory to ${INIT_MEMORY:=${MEMORY}} and max to ${MAX_MEMORY:=${MEMORY}}"
|
||||||
if [[ ${INIT_MEMORY} ]]; then
|
if [[ ${INIT_MEMORY} ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user