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"