Update setup.sh

This commit is contained in:
ilyastar9999
2025-12-02 20:08:08 +03:00
parent 530d668c5c
commit d093ba9fd6

View File

@@ -288,6 +288,7 @@ start_game_services() {
# Extract ports from docker-compose file # Extract ports from docker-compose file
local service_ports=$(grep -E '^\s*-\s*"?[0-9]+:[0-9]+' "$compose_file" | sed 's/.*"\?\([0-9]*\):[0-9]*.*/\1/' | tr '\n' ',' | sed 's/,$//') local service_ports=$(grep -E '^\s*-\s*"?[0-9]+:[0-9]+' "$compose_file" | sed 's/.*"\?\([0-9]*\):[0-9]*.*/\1/' | tr '\n' ',' | sed 's/,$//')
echo "Exposed ports for $service_name: $service_ports"
# Register service with controller and send ports # Register service with controller and send ports
echo "Registering $service_name with controller..." echo "Registering $service_name with controller..."