From 4808283c2a3e9797a4d9daee91ac09592310b1a2 Mon Sep 17 00:00:00 2001 From: sarcasticgoat <38933312+sarcasticgoat@users.noreply.github.com> Date: Mon, 4 Nov 2024 15:56:40 -0500 Subject: [PATCH] Optionally use MOD_LIST_MAP env variable to handle enabling mods --- docker/files/docker-dlc.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/files/docker-dlc.sh b/docker/files/docker-dlc.sh index 248efbe..1ecc8b3 100755 --- a/docker/files/docker-dlc.sh +++ b/docker/files/docker-dlc.sh @@ -26,7 +26,12 @@ disable_mod() } # Enable or disable DLCs if configured -if [[ ${DLC_SPACE_AGE:-} == "true" ]]; then +if [[ -n "$MOD_LIST_MAP" ]]; then + # if MOD_LIST_MAP env variable is defined, then use it to determine the mods to enable + for mod in $MOD_LIST_MAP; do + ENABLE_MODS+=("$mod") + done +elif [[ ${DLC_SPACE_AGE:-} == "true" ]]; then # Define the DLC mods ENABLE_MODS=(${ALL_SPACE_AGE_MODS[@]}) elif [[ ${DLC_SPACE_AGE:-} == "false" ]]; then