From 60f9d2f2359e0b0429335b02ca9ed1f8a86c2c23 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Tue, 1 Nov 2022 00:42:31 -0700 Subject: [PATCH] #68 Update scripts, docs --- homelab/server/config/minecraft/README.md | 2 +- homelab/server/scripts/compose_down.sh | 11 +---------- homelab/server/scripts/compose_up.sh | 9 --------- 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/homelab/server/config/minecraft/README.md b/homelab/server/config/minecraft/README.md index a747ce7d..903072d4 100644 --- a/homelab/server/config/minecraft/README.md +++ b/homelab/server/config/minecraft/README.md @@ -10,7 +10,7 @@ Do not prefix commands with `/`. ## Updating MC-Router mappings MC-Router must be running for all active MC connections. Restarting it kicks everyone off their servers -To update the mappings while running, use `docker exec mc-router /mc-router --mapping ` +To update the mappings while running, use `docker exec minecraft_mc-router /mc-router --mapping ` ## Before Starting a Server Check the following server.properties values: diff --git a/homelab/server/scripts/compose_down.sh b/homelab/server/scripts/compose_down.sh index bc7ef778..c6345efc 100755 --- a/homelab/server/scripts/compose_down.sh +++ b/homelab/server/scripts/compose_down.sh @@ -1,15 +1,6 @@ #!/bin/bash echo "===========================================" -echo "===== SHUTTING DOWN MINECRAFT SERVERS =====" -echo "===========================================" -for service in /home/joey/homelab/server/config/minecraft/*.yml -do - echo "===== SHUTTING DOWN $service =====" - docker-compose -f $service down -done - -echo "===========================================" -echo "======= SHUTTING DOWN OTHER SERVERS =======" +echo "======= SHUTTING DOWN SERVERS =======" echo "===========================================" for service in /home/joey/homelab/server/config/* diff --git a/homelab/server/scripts/compose_up.sh b/homelab/server/scripts/compose_up.sh index 5cf35d13..cabacd30 100755 --- a/homelab/server/scripts/compose_up.sh +++ b/homelab/server/scripts/compose_up.sh @@ -9,15 +9,6 @@ do docker-compose up -d done -echo "===========================================" -echo "======== STARTING MINECRAFT SERVERS =======" -echo "===========================================" -for service in /home/joey/homelab/server/config/minecraft/*.yml -do - echo "===== STARTING $service =====" - docker-compose -f $service up -d -done - echo "===========================================" echo "================ ALL DONE =================" echo "======= List all running containers ======="