diff --git a/entrypoint.sh b/entrypoint.sh index abc927f..aa990c5 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,6 +6,11 @@ cd /home/container # Make internal Docker IP address available to processes. 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 +fi + # Replace Startup Variables MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` echo ":/home/container$ ${MODIFIED_STARTUP}"