From 5f8686d97b7b4e3a585fad79b03320eec4873bb1 Mon Sep 17 00:00:00 2001 From: Lucas Briese Date: Wed, 19 Sep 2018 23:05:35 +0200 Subject: [PATCH] + added simplified option for my deployment --- Dockerfile | 4 +++- entrypoint.sh | 1 + experimental.sh | 10 ++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 experimental.sh diff --git a/Dockerfile b/Dockerfile index b6fda23..b3830bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,9 @@ ENV STEAM_PATH="/home/steam" \ CSS_PATH="/home/steam/addons/css" \ HL2_PATH="/home/steam/addons/hl2" \ HLDM_PATH="/home/steam/addons/hldm" \ - TF2_PATH="/home/steam/addons/tf2" + TF2_PATH="/home/steam/addons/tf2" \ + \ + USE_MY_REPLACER_CONFIG=false VOLUME "$SERVER_PATH" diff --git a/entrypoint.sh b/entrypoint.sh index 5e3ae00..8e01b50 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -30,6 +30,7 @@ cd "$STEAM_PATH" echo '[error][2] <= printed' && \ ./steamcmd.sh +login anonymous +force_install_dir "$STEAM_PATH/server/" +app_update 4020 validate +quit) +bash experimental.sh bash installAndMountAddons.sh bash forceWorkshopDownload.sh diff --git a/experimental.sh b/experimental.sh new file mode 100644 index 0000000..295c655 --- /dev/null +++ b/experimental.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +set -e + +#this is a simple option for myself, but you can use it too +if [ "$USE_MY_REPLACER_CONFIG" = "true" ]; then + mkdir -p "{$SERVER_PATH}/garrysmod/data/jusito_ttt_entity_replace" + wget -O "{$SERVER_PATH}/garrysmod/data/jusito_ttt_entity_replace/config.txt" "https://raw.githubusercontent.com/jusito/ttt_entity_replace/master/config.txt.example_fas2" +fi +