tv name from env

This commit is contained in:
Robin Appelman 2020-05-22 18:42:10 +02:00
commit e8c97cae8a
2 changed files with 3 additions and 1 deletions

View file

@ -19,3 +19,4 @@ docker pull spiretf/docker-spire-server
| MAP | The map to start the server on | cp_badlands | | MAP | The map to start the server on | cp_badlands |
| LOGSTF_APIKEY | Api key for logs.tf | | | LOGSTF_APIKEY | Api key for logs.tf | |
| DEMOSTF_APIKEY | Api key for demos.tf | | | DEMOSTF_APIKEY | Api key for demos.tf | |
| TV_NAME | Name of the STV specator bot | $NAME TV |

1
tf.sh
View file

@ -12,6 +12,7 @@ echo "sm_demostf_apikey \"${DEMOSTF_APIKEY}\"" >> $CFG
echo "logstf_apikey \"${LOGSTF_APIKEY}\"" >> $CFG echo "logstf_apikey \"${LOGSTF_APIKEY}\"" >> $CFG
echo "sm_autoexec_league ${CONFIG_LEAGUE:-etf2l}" >> $CFG echo "sm_autoexec_league ${CONFIG_LEAGUE:-etf2l}" >> $CFG
echo "sm_autoexec_mode ${CONFIG_MODE:-6v6}" >> $CFG echo "sm_autoexec_mode ${CONFIG_MODE:-6v6}" >> $CFG
echo "tv_name \"${TV_NAME:-"${NAME:-"Spire Server"} TV"}\"" >> $CFG
cd $HOME/hlserver cd $HOME/hlserver
tf2/srcds_run -game tf -autoupdate -steam_dir ~/hlserver -tickrate 120 -steamcmd_script ~/hlserver/tf2_ds.txt +map ${MAP:-cp_badlands} $@ tf2/srcds_run -game tf -autoupdate -steam_dir ~/hlserver -tickrate 120 -steamcmd_script ~/hlserver/tf2_ds.txt +map ${MAP:-cp_badlands} $@