From 3b41456a51c3f8cda587853c007d08987ad7c004 Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Mon, 19 Feb 2018 15:13:42 -0500 Subject: [PATCH 1/2] Changes for openttd (#17) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 03dd5b4..b1ab073 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN dpkg --add-architecture i386 \ && apt-get update \ && apt-get upgrade -y \ - && apt-get install -y tar curl gcc g++ lib32gcc1 lib32tinfo5 lib32z1 lib32stdc++6 libtinfo5:i386 libncurses5:i386 libcurl3-gnutls:i386 iproute2 gdb \ + && apt-get install -y tar curl gcc g++ lib32gcc1 lib32tinfo5 lib32z1 lib32stdc++6 libtinfo5:i386 libncurses5:i386 libcurl3-gnutls:i386 iproute2 gdb libsdl1.2debian libfontconfig \ && useradd -m -d /home/container container USER container From 56ec9f5c1aa7cd5b1249be32328fbd1949b06efe Mon Sep 17 00:00:00 2001 From: Shane Mc Cormack Date: Sun, 25 Feb 2018 21:44:40 +0000 Subject: [PATCH 2/2] Support for beta branches in steam. --- entrypoint.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e79cacd..f19b5fc 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,7 +6,15 @@ export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` # Update Source Server if [ ! -z ${SRCDS_APPID} ]; then - ./steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/container +app_update ${SRCDS_APPID} +quit + if [ ! -z ${SRCDS_BETAID} ]; then + if [ ! -z ${SRCDS_BETAPASS} ]; then + ./steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/container +app_update ${SRCDS_APPID} -beta ${SRCDS_BETAID} -betapassword ${SRCDS_BETAPASS} +quit + else + ./steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/container +app_update ${SRCDS_APPID} -beta ${SRCDS_BETAID} +quit + fi + else + ./steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/container +app_update ${SRCDS_APPID} +quit + fi fi # Replace Startup Variables