mirror of
https://github.com/Frail7487Real/laughing-spork.git
synced 2024-11-14 10:55:10 -05:00
minecraft hotfix
This commit is contained in:
parent
b37e6456ca
commit
c859f1822a
2 changed files with 11 additions and 0 deletions
1
.github/workflows/runglobal.yml
vendored
1
.github/workflows/runglobal.yml
vendored
|
@ -75,6 +75,7 @@ jobs:
|
||||||
aria2c -x 16 -j 16 -s 16 http://${{ inputs.oldTailscaleHostname }}:5000/archive.tar.gz
|
aria2c -x 16 -j 16 -s 16 http://${{ inputs.oldTailscaleHostname }}:5000/archive.tar.gz
|
||||||
|
|
||||||
tar xf archive.tar.gz
|
tar xf archive.tar.gz
|
||||||
|
rm -rf archive.tar.gz
|
||||||
|
|
||||||
cd minecraft
|
cd minecraft
|
||||||
else
|
else
|
||||||
|
|
10
loop.sh
10
loop.sh
|
@ -105,6 +105,16 @@ check() {
|
||||||
if [[ "$IS_GLOBAL" == "true" ]]; then
|
if [[ "$IS_GLOBAL" == "true" ]]; then
|
||||||
command+="-f \"inputs[oldTailscaleHostname]=$hostname\""
|
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
|
cd /tmp
|
||||||
|
|
||||||
# sudo is necessary because we run minecraft in a docker container
|
# sudo is necessary because we run minecraft in a docker container
|
||||||
|
|
Loading…
Reference in a new issue