Skip to content

Commit

Permalink
Updated the thing
Browse files Browse the repository at this point in the history
  • Loading branch information
ReallyFatYoshi committed Jul 7, 2024
1 parent 8eeb8fb commit 1405864
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ENV WINEDEBUG=fixme-all
# Stage 4
COPY --chmod=0755 ./entrypoint.sh /root/entrypoint.sh
COPY --chmod=0755 ./bdsx.sh /root/bdsx.sh
COPY --chmod=0755 bin/* /usr/local/bin/

# Stage 5
RUN mkdir -pm755 /etc/apt/keyrings && \
Expand All @@ -39,7 +40,8 @@ wget -O /etc/apt/sources.list.d/winehq-jammy.sources https://dl.winehq.org/wine-
dpkg --add-architecture i386
RUN apt-key add /etc/apt/keyrings/winehq.key
RUN add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ jammy main'
RUN apt upgrade -y
RUN sed -i s@/usr/share/keyrings/@/etc/apt/keyrings/@ /etc/apt/sources.list.d/winehq-focal.sources
RUN apt update -y
RUN apt install --install-recommends -y winehq-stable

# Stage 6
Expand Down
16 changes: 16 additions & 0 deletions bin/send-command.sh
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

0 comments on commit 1405864

Please sign in to comment.