QuakeLiveDocker/start.sh

24 lines
652 B
Bash
Raw Normal View History

2022-07-28 00:53:42 +01:00
#!/bin/bash
2022-07-31 19:14:49 +01:00
ServerName="${SERVER_NAME:-QuakeLive}"
2022-07-28 00:53:42 +01:00
Password="${PASSWORD:-}"
2022-07-31 19:14:49 +01:00
AdminPassword="${ADMIN_PASSWORD:-}"
2022-07-28 00:53:42 +01:00
StatsPassword="${STATS_PASSWORD:-}"
steamcmd +login anonymous +force_install_dir /game +app_update 349090 validate +exit
2022-07-28 00:53:42 +01:00
/game/run_server_x64.sh \
+set net_strict 1 \
2022-07-31 19:14:49 +01:00
+set net_port 27960 \
+set sv_hostname "${ServerName}" \
+set sv_tags "${ServerName}" \
2022-07-28 00:53:42 +01:00
+set sv_servertype 2 \
+set sv_master 1 \
+set g_password "${Password}" \
+set zmq_rcon_enable 1 \
2022-07-31 19:14:49 +01:00
+set zmq_rcon_password "${AdminPassword}" \
+set zmq_rcon_port 28960 \
2022-07-28 00:53:42 +01:00
+set zmq_stats_enable 1 \
+set zmq_stats_password "${StatsPassword}" \
2022-07-31 19:14:49 +01:00
+set zmq_stats_port 27960 \
2022-07-28 00:53:42 +01:00
+set sv_vac 0