minecraft hotfix

This commit is contained in:
CeciliaKelley33Mm 2024-10-07 13:03:25 +07:00
parent b37e6456ca
commit c859f1822a
2 changed files with 11 additions and 0 deletions

View file

@ -75,6 +75,7 @@ jobs:
aria2c -x 16 -j 16 -s 16 http://${{ inputs.oldTailscaleHostname }}:5000/archive.tar.gz
tar xf archive.tar.gz
rm -rf archive.tar.gz
cd minecraft
else

10
loop.sh
View file

@ -105,6 +105,16 @@ check() {
if [[ "$IS_GLOBAL" == "true" ]]; then
command+="-f \"inputs[oldTailscaleHostname]=$hostname\""
cd /tmp/minecraft
docker compose exec minecraft rcon-cli broadcast The server is stopping in 30 seconds. Please leave the server.
sleep 30
# not stopping the server would cause problems
# like world files aren't latest or even file corruptions
docker compose down
cd /tmp
# sudo is necessary because we run minecraft in a docker container