Directly attach stdin of server process by default (#2605)

This commit is contained in:
Geoff Bourne
2024-01-20 13:13:26 -06:00
committed by GitHub
parent 5729324195
commit ca393c4fcf
3 changed files with 9 additions and 2 deletions

View File

@@ -2,6 +2,11 @@
. "/start-utils"
: "${CONSOLE_IN_NAMED_PIPE:=/tmp/minecraft-console-in}"
if isFalse "${CREATE_CONSOLE_IN_PIPE:-false}"; then
echo "ERROR: console pipe needs to be enabled by setting CREATE_CONSOLE_IN_PIPE to true"
fi
if [ $# = 0 ]; then
echo "ERROR: pass console commands as arguments"
exit 1