mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2026-06-28 01:58:34 +00:00
minecraft bedrock graceful stop
This commit is contained in:
@@ -6,8 +6,9 @@ RUN apt-get install -y wget openjdk-21-jre
|
||||
USER ubuntu
|
||||
WORKDIR /home/ubuntu
|
||||
|
||||
RUN wget https://github.com/Tiiffi/mcrcon/releases/download/v0.7.2/mcrcon-0.7.2-linux-x86-64.tar.gz
|
||||
RUN tar xvf mcrcon-0.7.2-linux-x86-64.tar.gz
|
||||
# from https://github.com/itzg/rcon-cli
|
||||
RUN wget -O rcon-cli.tar.gz https://github.com/itzg/rcon-cli/releases/download/1.6.9/rcon-cli_1.6.9_linux_amd64.tar.gz
|
||||
RUN tar xvf rcon-cli.tar.gz && rm rcon-cli.tar.gz
|
||||
|
||||
# from https://www.minecraft.net/en-us/download/server (currently 1.21)
|
||||
RUN wget https://piston-data.mojang.com/v1/objects/59353fb40c36d304f2035d51e7d6e6baa98dc05c/server.jar
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
cleanup() {
|
||||
./mcrcon -p password stop
|
||||
./rcon-cli --password password stop
|
||||
}
|
||||
|
||||
trap 'cleanup' TERM
|
||||
|
||||
Reference in New Issue
Block a user