Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
server-common.sh: Account for CS2 in _run_pre()
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Reichl <[email protected]>
  • Loading branch information
thetredev committed Dec 21, 2023
1 parent 979dd7c commit 5ebb462
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion image/base/usr/local/lib/steamcmd/server-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ _run_pre() {
return 1
fi

if _is_running ${command}; then
local server_command="${command}"

if [[ "${STEAMCMD_SERVER_APPID}" = "730" ]]; then
server_command="cs2"
fi

if _is_running ${server_command}; then
echo ${MESSAGE_STEAMCMD_SERVER_RUNNING}
return 2
fi
Expand Down

0 comments on commit 5ebb462

Please sign in to comment.