From 56ec9f5c1aa7cd5b1249be32328fbd1949b06efe Mon Sep 17 00:00:00 2001 From: Shane Mc Cormack Date: Sun, 25 Feb 2018 21:44:40 +0000 Subject: [PATCH] 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