mirror of
https://github.com/mr-vercetti/docker-blackmesa-coop-server.git
synced 2025-01-18 13:35:34 +01:00
15 lines
383 B
Bash
Executable File
15 lines
383 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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
|
|
|
|
cd ${SERVER_DIR}
|
|
${SERVER_DIR}/srcds_run -game bms ${GAME_PARAMS}
|