This commit is contained in:
parent
da36bdaeb3
commit
790fb30018
@ -26,6 +26,8 @@
|
||||
|
||||
`MAP_ROTATION` comma separated list of maps to populate the `mapcycle.txt` and `maplist.txt` files.
|
||||
|
||||
`SM_ADMIN` comma separated list of ids to grand admin privileges e.g. "STEAM_0:1:57874277", "!127.0.0.1"
|
||||
|
||||
# Custom conVars
|
||||
|
||||
You can set ANY other variable by just prefixing the conVar with `CVAR_`. So for example if you want to set `mp_disable_autokick 1` just set the enviroment variable `CVAR_MP_DISABLE_AUTOKICK` to `1`. Upper or lower case is ignored.
|
||||
|
@ -154,6 +154,14 @@ if [ -n "$WORKSHOP_COLLECTION" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
mkdir -p "/home/steam/server/csgo/addons/sourcemod/configs/"
|
||||
echo "// Autogenerated. DO NOT EDIT. Sourcemod admin can be added with the SM_ADMIN environment variable" \
|
||||
> "/home/steam/server/csgo/addons/sourcemod/configs/admins_simple.ini"
|
||||
for id in $(echo "$SM_ADMIN" | sed 's/,/\n/g')
|
||||
do
|
||||
echo "\"$id\" \"99:z\"" >> "/home/steam/server/csgo/addons/sourcemod/configs/admins_simple.ini"
|
||||
done
|
||||
|
||||
CVARS=$(env | awk -F "=" '/^CVAR_/ { sub("CVAR_","",$1); print "+"tolower($1),($2 ~ /^[0-9]+$/)?$2:"\""$2"\""," "}' | tr -d "\n")
|
||||
|
||||
echo "Running command: srcds_run -game csgo $SRCDS_ARGS $CVARS"
|
||||
|
Loading…
Reference in New Issue
Block a user