mirror of
https://github.com/ENSL/ensl_hlds.git
synced 2024-12-12 05:22:52 +00:00
31 lines
1,002 B
Bash
Executable file
31 lines
1,002 B
Bash
Executable file
#!/bin/bash
|
|
|
|
cd /home/steam/hlds
|
|
|
|
echo "in entry_steam.sh"
|
|
env|grep HL
|
|
|
|
if [[ "$HLDS_ROTATE" = "1" ]]; then
|
|
which lz4 &>/dev/null || echo "LZ4 not found."
|
|
./rotate_logs.sh >> /home/steam/hlds/ns/logs/rotate.log &
|
|
echo "Rotating logs in background."
|
|
fi
|
|
if [[ "$HLTV_ROTATE" = "1" ]]; then
|
|
which lz4 &>/dev/null || echo "LZ4 not found."
|
|
./rotate_demos.sh >> /home/steam/hlds/ns/demos/rotate.log
|
|
echo "Rotating demos in background."
|
|
fi
|
|
|
|
if [[ "$HLTV" = "1" ]]; then
|
|
echo "Starting HLTV `host.docker.internal`:27016"
|
|
export LD_LIBRARY_PATH=.
|
|
./hltv +serverpassword europe +connect host.docker.internal:27016 +record demos/gathers >> /home/steam/hlds/ns/demos/hltv-`date +%F-%h:%m`.log
|
|
echo "Started"
|
|
elif [[ "$HLDS" = "1" ]]; then
|
|
echo "Starting HLDS -ip `host.docker.internal` -port 27016"
|
|
export LD_LIBRARY_PATH=.
|
|
./hlds_run -game ns +maxplayers 32 +log on +map ns_veil +exec ns/server.cfg -port 27016 -pingboost 3 +sys_ticrate 1000 -ip host.docker.internal
|
|
echo "Started"
|
|
fi
|
|
|
|
bash
|