From e4b58e76c21bc4e79dcea7ac23bd8ad9cdf285ed Mon Sep 17 00:00:00 2001 From: Lucas Briese Date: Tue, 15 Oct 2019 12:59:03 +0200 Subject: [PATCH] + set additional variables for lgsm details (incomplete) --- gmod/Dockerfile | 3 ++- gmod/common.cfg | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gmod/Dockerfile b/gmod/Dockerfile index 08b477a..c2d0f12 100644 --- a/gmod/Dockerfile +++ b/gmod/Dockerfile @@ -14,8 +14,9 @@ ENV CSS_PATH="/home/steam/addons/css" \ WORKSHOP_COLLECTION_ID="" \ WORKSHOP_API_KEY="" \ WORKSHOP_AUTOLOAD="true" \ - SERVER_NAME="" \ + SERVER_NAME="LinuxGSM" \ SERVER_PASSWORD="" \ + SERVER_RCON_PASSWORD="" \ SERVER_VOICE_ENABLE="1" \ SERVER_IP="0.0.0.0" \ SERVER_PORT="27015" \ diff --git a/gmod/common.cfg b/gmod/common.cfg index 4630955..18aba7a 100644 --- a/gmod/common.cfg +++ b/gmod/common.cfg @@ -9,6 +9,15 @@ fi #travistest: unbound variable #set -o nounset + +## For "details" command: https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/info_messages.sh +## fn_info_message_gameserver +servername="$SERVER_NAME" +serverpassword="$SERVER_PASSWORD" +if [ ! -n "$SERVER_RCON_PASSWORD" ]; then + rconpassword="$SERVER_RCON_PASSWORD" +fi + ## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters ip="$SERVER_IP" port="$SERVER_PORT"