Added support for Steam Guard key to be provided as environment variable
This commit is contained in:
parent
99b24290bb
commit
d51908fe3c
3 changed files with 5 additions and 2 deletions
|
@ -4,11 +4,12 @@ mkdir -p "${STEAMAPPDIR}" || true
|
|||
# Download Updates
|
||||
|
||||
bash "${STEAMCMDDIR}/steamcmd.sh" +force_install_dir "${STEAMAPPDIR}" \
|
||||
+login "${STEAMUSER}" "${STEAMPASS}" \
|
||||
+login "${STEAMUSER}" "${STEAMPASS}" "${STEAMGUARD}" \
|
||||
+app_update "${STEAMAPPID}" \
|
||||
+quit
|
||||
|
||||
# Rewrite Config Files
|
||||
|
||||
if [[ ! -z $CS2_BOT_DIFFICULTY ]] ; then
|
||||
sed -i "s/bot_difficulty.*/bot_difficulty ${CS2_BOT_DIFFICULTY}/" /home/steam/cs2-dedicated/game/csgo/cfg/*
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue