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

Commit

Permalink
add debug env var
Browse files Browse the repository at this point in the history
  • Loading branch information
timche committed Jun 25, 2020
1 parent 61131dc commit c2024f8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,12 @@ Default: None

List of comma-separated PugSetup configurations (e.g. `sm_pugsetup_damageprint_auto_color=1,sm_pugsetup_damageprint_format={NAME} [{HEALTH}]: {DMG_TO}/{HITS_TO}`) that are set in `cfg/sourcemod/pugsetup_damageprint.cfg`. Changes are applied on container start, but requires `pugsetup_damageprinter` plugin to be run first.

#### `DEBUG`

Default: `false`

Print all executed commands for better debugging.

## Populating with Own Server Files

The server can be populated with your own custom server files (e.g. configs and maps) through a mounted directory that has the same folder structure as the server `csgo` folder in order to add or overwrite the files at their respective paths. The directory must be mounted at [`CSGO_CUSTOM_FILES_DIR`](#csgo_custom_files_dir) (default: `/usr/csgo`) and will be synced with the server `csgo` folder at each start of the container.
Expand Down
4 changes: 4 additions & 0 deletions base/server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

set -e

if [ "${DEBUG}" = "true" ]; then
set -x
fi

shopt -s extglob

steam_dir="${HOME}/Steam"
Expand Down
4 changes: 4 additions & 0 deletions pug-practice/server_pug_practice.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

set -e

if [ "${DEBUG}" = "true" ]; then
set -x
fi

shopt -s extglob

server=$HOME/server.sh
Expand Down
4 changes: 4 additions & 0 deletions sourcemod/server_sourcemod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

set -e

if [ "${DEBUG}" = "true" ]; then
set -x
fi

shopt -s extglob

args=("$@")
Expand Down

0 comments on commit c2024f8

Please sign in to comment.