+ set additional variables for lgsm details (incomplete)

This commit is contained in:
Lucas Briese 2019-10-15 12:59:03 +02:00
parent caefb24b20
commit e4b58e76c2
2 changed files with 11 additions and 1 deletions

View File

@ -14,8 +14,9 @@ ENV CSS_PATH="/home/steam/addons/css" \
WORKSHOP_COLLECTION_ID="" \ WORKSHOP_COLLECTION_ID="" \
WORKSHOP_API_KEY="" \ WORKSHOP_API_KEY="" \
WORKSHOP_AUTOLOAD="true" \ WORKSHOP_AUTOLOAD="true" \
SERVER_NAME="" \ SERVER_NAME="LinuxGSM" \
SERVER_PASSWORD="" \ SERVER_PASSWORD="" \
SERVER_RCON_PASSWORD="" \
SERVER_VOICE_ENABLE="1" \ SERVER_VOICE_ENABLE="1" \
SERVER_IP="0.0.0.0" \ SERVER_IP="0.0.0.0" \
SERVER_PORT="27015" \ SERVER_PORT="27015" \

View File

@ -9,6 +9,15 @@ fi
#travistest: unbound variable #travistest: unbound variable
#set -o nounset #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 ## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters
ip="$SERVER_IP" ip="$SERVER_IP"
port="$SERVER_PORT" port="$SERVER_PORT"