From 6374f60bd5f39fea9bd872ae2e467a31bd871436 Mon Sep 17 00:00:00 2001 From: thespad Date: Mon, 30 Dec 2024 19:48:35 +0000 Subject: [PATCH 1/2] Increase modcache timeout to 55 seconds --- docker-mods.v3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-mods.v3 b/docker-mods.v3 index 721e791..ec7c47b 100755 --- a/docker-mods.v3 +++ b/docker-mods.v3 @@ -385,12 +385,12 @@ run_mods() { write_mod_info "Downloading ${DOCKER_MOD} from ${REGISTRY}" if [[ -f "/modcache/${FILENAME}.lock" ]]; then write_mod_info "${DOCKER_MOD} is already being downloaded by another container, waiting..." - for ((i = 5 ; i < 21 ; i=i*2 )); do + for ((i = 5 ; i < 41 ; i=i*2 )); do sleep $i if [[ ! -f "/modcache/${FILENAME}.lock" ]]; then SKIP_MOD_DOWNLOAD=true break - elif [[ $i == 20 ]]; then + elif [[ $i == 40 ]]; then write_mod_error "${DOCKER_MOD} timed out waiting for lock, skipping\n\tIf no other containers are using this mod you may need to delete /modcache/${FILENAME}.lock" SKIP_MOD=true fi From bc74414fd16ae12a73dc74cfa7f5cb5642ed45af Mon Sep 17 00:00:00 2001 From: thespad Date: Mon, 30 Dec 2024 19:50:42 +0000 Subject: [PATCH 2/2] Bump version --- docker-mods.v3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-mods.v3 b/docker-mods.v3 index ec7c47b..a4e51c8 100755 --- a/docker-mods.v3 +++ b/docker-mods.v3 @@ -5,7 +5,7 @@ # Version 3 # 2022-09-25 - Initial Release -MOD_SCRIPT_VER="3.20241223" +MOD_SCRIPT_VER="3.20241230" # Define custom folder paths SCRIPTS_DIR="/custom-cont-init.d"