docker-blackmesa-coop-server/scripts/start.sh

15 lines
383 B
Bash
Raw Normal View History

2023-11-25 13:20:48 +01:00
#!/bin/bash
2023-11-25 22:45:12 +01:00
server_cfg_file="${SERVER_DIR}/bms/cfg/server.cfg"
echo "Starting Black Mesa Co-Op server \"$GAME_NAME\""
echo "hostname \"${GAME_NAME}\"" >> $server_cfg_file
if [[ $GAME_PASSWORD != "" ]]; then
echo "Password protection enabled"
echo "sv_password \"${GAME_PASSWORD}\"" >> $server_cfg_file
fi
2023-11-25 13:20:48 +01:00
cd ${SERVER_DIR}
${SERVER_DIR}/srcds_run -game bms ${GAME_PARAMS}