mirror of
https://codeberg.org/spire/docker-spire-server.git
synced 2026-06-03 14:24:08 +02:00
tv name from env
This commit is contained in:
parent
c01272755a
commit
e8c97cae8a
2 changed files with 3 additions and 1 deletions
|
|
@ -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
1
tf.sh
|
|
@ -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} $@
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue