add autoexec settings

This commit is contained in:
Robin Appelman 2016-01-09 20:58:14 +01:00
commit e1cdc6c989
2 changed files with 13 additions and 11 deletions

View file

@ -8,13 +8,14 @@ docker pull spiretf/docker-spire-server
## Enviroment Options
| Option | Description | Default |
| ----------------- | ------------------------------ | :--------------- |
| NAME | The name for the server | Spire Server |
| PASSWORD | The connect password | password |
| RCON_PASSWORD | The rcon password | rcon |
| WEBRCON\_PASSWORD | The webrcon password | $RCON\_PASSWORD |
| CONFIG | The server config to execute | etf2l_6v6_5cp |
| MAP | The map to start the server on | cp_badlands |
| LOGSTF_APIKEY | Api key for logs.tf | |
| DEMOSTF_APIKEY | Api key for demos.tf | |
| Option | Description | Default |
| ----------------- | ------------------------------------------- | :--------------- |
| NAME | The name for the server | Spire Server |
| PASSWORD | The connect password | password |
| RCON_PASSWORD | The rcon password | rcon |
| WEBRCON\_PASSWORD | The webrcon password | $RCON\_PASSWORD |
| CONFIG_LEAGUE | The league to execute server configs for | etf2l |
| CONFIG_MODE | The game mode to execute server configs for | 6v6 |
| MAP | The map to start the server on | cp_badlands |
| LOGSTF_APIKEY | Api key for logs.tf | |
| DEMOSTF_APIKEY | Api key for demos.tf | |

3
tf.sh
View file

@ -10,7 +10,8 @@ echo "rcon_password \"${RCON_PASSWORD:-rcon}\"" >> $CFG
echo "sm_webrcon_key \"${WEBRCON_PASSWORD:-${RCON_PASSWORD:-rcon}}\"" >> $CFG
echo "sm_demostf_apikey \"${DEMOSTF_APIKEY}\"" >> $CFG
echo "logstf_apikey \"${LOGSTF_APIKEY}\"" >> $CFG
echo "exec ${CONFIG:-etf2l_6v6_5cp}" >> $CFG
echo "sm_autoexec_league ${CONFIG_LEAGUE:-etf2l}" >> $CFG
echo "sm_autoexec_mode ${CONFIG_MODE:-6v6}" >> $CFG
cd $HOME/hlserver
tf2/srcds_run -game tf -autoupdate -steam_dir ~/hlserver -steamcmd_script ~/hlserver/tf2_ds.txt +map ${MAP:-cp_badlands} $@