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

This commit is contained in:
Geoff Bourne authored and GitHub committed 2021-12-20 07:09:29 -06:00
1 parent cc885276f5
commit c15e231d7e
2 files changed
+3 -3

No files matched your search

+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}'"