From e421ad2ca6a738970e096dc19ec40b39b4dd2388 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Thu, 1 Jun 2023 10:28:32 -0500 Subject: [PATCH] Fix send-command to work on arm64 (#328) --- bin/send-command | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/send-command b/bin/send-command index b37bf4e..0b4a496 100755 --- a/bin/send-command +++ b/bin/send-command @@ -1,7 +1,8 @@ #!/bin/bash if [[ $* ]]; then - if proc=$(find /proc -mindepth 2 -maxdepth 2 -name exe -lname '/data/bedrock_server-*' -printf '%h' -quit); then + # On arm64, the process exe is actually box64 since it in turn wraps the bedrock_server executable + if proc=$(find /proc -mindepth 2 -maxdepth 2 -name exe \( -lname '/data/bedrock_server-*' -o -lname /usr/local/bin/box64 \) -printf '%h' -quit); then if [[ $proc ]]; then echo "$@" > "$proc/fd/0" else