fix: write to console pipe as minecraft user (#1216)

This commit is contained in:
Geoff Bourne
2021-12-20 07:09:29 -06:00
committed by GitHub
parent cc885276f5
commit c15e231d7e
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -12,4 +12,4 @@ if [ ! -p "${CONSOLE_IN_NAMED_PIPE}" ]; then
exit 1
fi
echo "$@" > "${CONSOLE_IN_NAMED_PIPE:-/tmp/minecraft-console-in}"
gosu minecraft bash -c "echo $* > '${CONSOLE_IN_NAMED_PIPE:-/tmp/minecraft-console-in}'"