Skip to content

Commit 83523dd

Browse files
committed
bug: fix startup script
1 parent 286e7b1 commit 83523dd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/server.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ if [ "${GAME_ID}" = "740" ]; then
1717
;;
1818
esac
1919
SERVER_BINARY="${INSTANCE_SERVER_DIR}/srcds_linux"
20+
GAME_ARGS="-game csgo"
2021
else
2122
SERVER_BINARY="${INSTANCE_SERVER_DIR}/game/bin/linuxsteamrt64/cs2"
23+
GAME_ARGS=""
2224
fi
2325

24-
"${SERVER_BINARY}" -ip 0.0.0.0 -port ${SERVER_PORT} +tv_port ${TV_PORT} -dedicated -dev -usercon +rcon_password ${RCON_PASSWORD} ${EXTRA_GAME_PARAMS} &
26+
"${SERVER_BINARY}" ${GAME_ARGS} -ip 0.0.0.0 -port ${SERVER_PORT} +tv_port ${TV_PORT} -dedicated -dev -usercon +rcon_password ${RCON_PASSWORD} ${EXTRA_GAME_PARAMS} &
2527

2628
CS_PID=$!
2729

0 commit comments

Comments
 (0)