#!/bin/sh # Server console from the terminal: ./rcon status, ./rcon addbot hunter 5, or ./rcon for a prompt. # Runs the client inside the container, so the RCON password never leaves this machine. D=$(cd "$(dirname "$0")" && pwd) NAME=$(sed -n 's/^QL_NAME=//p' "$D/.env" 2>/dev/null | tr -d '\r') if [ -t 0 ]; then T=-it; else T=-i; fi exec docker exec $T "${NAME:-ql-lg}" python3 /ql/tools/qlrcon.py "$@"