forked from Bloody160/bdsx-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8eeb8fb
commit 1405864
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
if [[ $* ]]; 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 | ||
echo "ERROR: unable to find bedrock server process" | ||
exit 2 | ||
fi | ||
else | ||
echo "ERROR: failed to search for bedrock server process" | ||
exit 2 | ||
fi | ||
fi |