Skip to content

Commit 0d93e5a

Browse files
authored
Update entrypoint.sh
1 parent 9ec3644 commit 0d93e5a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

entrypoint.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
export SERVER_HOSTNAME="${hostname}"
3+
export AUTHKEY="${AUTHKEY}"
4+
export PORT="${port:-27015}"
5+
export SERVER_PASSWORD="${password:-}"
6+
export RCON_PASSWORD="${rcon_password:-changeme}"
7+
28
set -e
39
cd csgo
4-
./srcds_run -game csgo +hostname "$hostname" +sv_password "$password" +rcon_password "$rcon_password" +map de_dust2 -maxplayers "$maxplayer" -port "$port"
10+
./srcds_run -game csgo +hostname "$SERVER_HOSTNAME" +sv_password "$SERVER_PASSWORD" +rcon_password "$RCON_PASSWORD" +map de_dust2 -maxplayers "$maxplayer" -port "$PORT" -authkey "$AUTHKEY"

0 commit comments

Comments
 (0)