mirror of
https://github.com/mr-vercetti/docker-blackmesa-coop-server.git
synced 2026-11-08 13:05:48 +01:00
Add config variables
This commit is contained in:
1 parent
d2873874d6
commit
b0ce400a36
3 files changed
+30
-1
No files matched your search
@@ -1,3 +1,14 @@
|
||||
#!/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}
|
||||
Reference in new issue
Block a user