mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-21 22:32:39 +00:00
Add optional nogui
If set via ENV, disable GUI on server.
This commit is contained in:
1 parent
c4a92f6706
commit
6a565692a0
1 file changed
+9
-4
@@ -503,10 +503,15 @@ if [ "$TYPE" = "SPIGOT" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $CONSOLE = false ]]; then
|
EXTRA_ARGS=""
|
||||||
EXTRA_ARGS=--noconsole
|
# Optional disable console
|
||||||
else
|
if [[ ${CONSOLE} = false ]]; then
|
||||||
EXTRA_ARGS=""
|
EXTRA_ARGS+="--noconsole"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Optional disable GUI for headless servers
|
||||||
|
if [[ ${GUI} = false ]]; then
|
||||||
|
EXTRA_ARGS="${EXTRA_ARGS} nogui"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# put these prior JVM_OPTS at the end to give any memory settings there higher precedence
|
# put these prior JVM_OPTS at the end to give any memory settings there higher precedence
|
||||||
|
|||||||
Reference in new issue
Block a user