mirror of
https://codeberg.org/spire/docker-spire-server.git
synced 2026-06-03 22:34:09 +02:00
fix config defaults
This commit is contained in:
parent
4bef0d94f4
commit
e6a1a11ab6
1 changed files with 5 additions and 5 deletions
10
tf.sh
10
tf.sh
|
|
@ -4,12 +4,12 @@ CFG="$SERVER/tf2/tf/cfg/server.cfg"
|
||||||
|
|
||||||
# Configure server from ENV
|
# Configure server from ENV
|
||||||
|
|
||||||
echo "hostname \"${NAME:-'Spire Server'}\"" >> $CFG
|
echo "hostname \"${NAME:-"Spire Server"}\"" >> $CFG
|
||||||
echo "sv_password \"${PASSWORD:-'password'}\"" >> $CFG
|
echo "sv_password \"${PASSWORD:-password}\"" >> $CFG
|
||||||
echo "rcon_password \"${RCON_PASSWORD:-'rcon'}\"" >> $CFG
|
echo "rcon_password \"${RCON_PASSWORD:-rcon}\"" >> $CFG
|
||||||
echo "sm_webrcon_key \"${WEBRCON_PASSWORD:-${RCON_PASSWORD:-'rcon'}}\"" >> $CFG
|
echo "sm_webrcon_key \"${WEBRCON_PASSWORD:-${RCON_PASSWORD:-rcon}}\"" >> $CFG
|
||||||
echo "logstf_apikey \"${LOGSTF_APIKEY}\"" >> $CFG
|
echo "logstf_apikey \"${LOGSTF_APIKEY}\"" >> $CFG
|
||||||
echo "exec ${CONFIG:-etf2l_6v6_5cp}" >> $CFG
|
echo "exec ${CONFIG:-etf2l_6v6_5cp}" >> $CFG
|
||||||
|
|
||||||
cd $HOME/hlserver
|
cd $HOME/hlserver
|
||||||
tf2/srcds_run -game tf -autoupdate -steam_dir ~/hlserver -steamcmd_script ~/hlserver/tf2_ds.txt +map ${MAP:-'cp_badlands'} $@
|
tf2/srcds_run -game tf -autoupdate -steam_dir ~/hlserver -steamcmd_script ~/hlserver/tf2_ds.txt +map ${MAP:-cp_badlands} $@
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue