From 5b761eea1eef4f8ecec9acacb645cdf78274aa15 Mon Sep 17 00:00:00 2001 From: John Edwards Date: Wed, 28 Aug 2024 16:58:42 +0100 Subject: [PATCH] Example of overriding the pre-hook using Docker Volumes --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 37c6560..5251856 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,12 @@ The container includes two scripts for executing custom actions: When using a persient volume mounted at `/home/steam/cs2-dedicated/` you may edit these scripts to perform custom actions, such as enabling metamod. +Alternatively, you may have docker mount files from outside the container to override these files. E.g.: + +``` +-v /path/to/pre.sh:/home/steam/cs2-dedicated/pre.sh +``` + ## Overriding Game Mode Defaults The default configurations for each game mode are stored in `/home/steam/cs2-dedicated/game/csgo/cfg/`. For example, the Competitive mode defaults are set by `gamemode_competitive.cfg`.